A summer camp is organizing a hike and needs to buy granola bars for the campers. The granola bars come in small boxes and large boxes. Each small box has 10 granola bars and each large box has 24 granola bars. The camp bought a total of 10 boxes that have 184 granola bars altogether. Write a system of equations that could be used to determine the number of small boxes purchased and the number of large boxes purchased. Define the variables that you use to write the system.

x = small boxes

y = large boxes
x+y = 10
10x + 24y = 184