Answer:the number of hot dogs that were sold is 11
the number of hamburgers that were sold is 16
Step-by-step explanation:
Let x represent the number of hot dogs that were sold.
Let y represent the number of hamburgers that were sold.
At a snack stand, hot dogs cost $3.50 and hamburgers cost $5. If the snack stand sold 27 snacks and made $118.50 in revenue, this means that
x + y = 27 - - - - - - - - - -1
3.5x + 5y = 118.5 - - - - - - - 2
Substituting x = 27 - y into equation 2, it becomes
3.5(27 - y) + 5y = 118.5
94.5 - 3.5y + 5y = 118.5
- 3.5y + 5y = 118.5 - 94.5
1.5y = 24
y = 24/1.5 = 16
x = 27 - y = 27 - 16 = 11