You and some friends buy hamburgers and milkshakes for lunch. A hamburger costs $1.50 and a milkshake costs $2.00.The total bill for 12 items is $21.50.How many hamburgers and how many milkshakes did your group buy? Write a system of equations to model this situation. Solve by any method. (even if you use graphing, make sure to write the equations in the system).

1 answer

Let H represent the number of hamburgers purchased and M represent the number of milkshakes purchased.

The total number of items purchased is 12, so we have the equation:
H + M = 12

The cost of a hamburger is $1.50, so the cost of all the hamburgers purchased would be 1.5H.
The cost of a milkshake is $2.00, so the cost of all the milkshakes purchased would be 2M.
The total cost of all items purchased is $21.50, so we have the equation:
1.5H + 2M = 21.50

We can substitute the first equation into the second equation to solve for the values of H and M.
1.5(12 - M) + 2M = 21.50
18 - 1.5M + 2M = 21.50
0.5M = 3.5
M = 7

Substitute M = 7 back into the first equation:
H + 7 = 12
H = 5

Therefore, the group bought 5 hamburgers and 7 milkshakes.