Let x and y be the cost of each of the bags of popcorn and candy bars, respectively. With this, the total amount that Troy raised can be expressed as,
28x + 40y = 282
In similar manner, we may also express the amount raised by Jake raised is,
17x + 20y = 160.50
The system of linear equations is rewritten below.
28x + 40y = 282
17x + 20y = 160.50
The values of x and y from the equation are 6.5 and 2.5.
Answer: popcorn = $6.5
candy bars = $2.5