x= hot dogs
y= soda
Total sold
1 x + 1 y = 87 .............1
2 x 0.50 y = 78.50 .............2
Eliminate y
multiply (1)by -0.50
Multiply (2) by 1.00
-0.50 x -0.50 y = -43.50
2 x + 0.50 y = 78.50
Add the two equations
1 x = 35.00
/ 1
x = 35.00
plug value of x in (1)
1 x + 1 y = 87
35 + y = 87
y = 87 -35
y = 52
y = 52.00
x= 35 hot dogs
y= 52 soda