Answer: the number of hot dogs that were purchased was 27
the number of bags of popcorn that were purchased was 13
Explanation:
Let x represent the number of hot dogs that were purchased.
Let y represent the number of bags of popcorn that were purchased.
A group of 40 children attend a baseball game on a field trip. Each child received either a hot dog or a bag of popcorn. It means that
x + y = 40
Hot dogs were $2.25 and popcorn was $1.75. If the total bill was $83.50. It means that
2.25x + 1.75y = 83.50 - - - - - - - - - -1
Substituting x = 40 - y into equation 1, it becomes
2.25(40 - y) + 1.75y = 83.50
90 - 2.25y + 1.75y = 83.50
- 2.25y + 1.75y = 83.50 - 90
- 0.5y = - 6.5.y = - 6.5/ -0.5
y = 13
x = 40 - y = 40 - 13
x = 27