Answer:
The number of hot dogs sold was 35 and the number of sodas sold was 52
Step-by-step explanation:
Let
x ----> the number of hot dogs sold
y ----> the number of sodas sold
we know that
[tex]x+y=87[/tex]
[tex]x=87-y[/tex] ----> equation A
[tex]1.50x+0.50y=78.50[/tex] ----> equation B
Solve the system by substitution
substitute equation A in equation B
[tex]1.50(87-y)+0.50y=78.50[/tex]
solve for y
[tex]130.50-1.50y+0.50y=78.50[/tex]
[tex]1.50y-0.50y=130.50-78.50[/tex]
[tex]y=52\ sodas[/tex]
Find the value of x
[tex]x=87-52=35\ hot dogs[/tex]
therefore
The number of hot dogs sold was 35 and the number of sodas sold was 52