Question 1171918

Bob bought a popcorn, a soda, and a hotdog at the movies for $6.94. Popcorn costs $1 more than a hotdog. A soda costs $0.81 less than a hotdog. How much is each item?
<pre>Let cost of a hotdog be H
Then cost of a popcorn = H + 1
Also, cost of a soda = H - .81
We then get: H + H + 1 + H - .81 = 6.94
3H + .19 = 6.94
3H = 6.75
Cost of a hotdog, or {{{highlight_green(matrix(1,5, H, "=", 6.75/3, "=", "$2.25"))}}}
Now, you can find the cost of a popcorn and of a soda!