Answer:
A candy bar costs $0.80
A bag of chips costs $6.20
Explanation:
Let's call candy bars x, and bags of chips y.
Ruben ought 2x and 4y for $24
Lucis bought 2x and 2y for $14
This means that 2x+4y = 24 and 2x+2y = 14
Now we have a system of equations that we can solve.
2x + 2y = 14
2(x + y) = 14
x + y = 7
y = 7 - x
Plug this into the next equation to get:
2x + 4y = 24
2x + 4(7 - x) = 24
2x + 28 - 7x = 24
28 - 5x = 24
-5x = -4
x = -4/-5
x = 4/5 = 0.8
plug that x value into y = 7 - x to find y
y = 7 - x
y = 7 - (4/5)
y = 245/35 - 28/35
y = 217/35 = 6.2
now we can check our work:
2(x + y) = 14
2(6.2 + 0.8) = 14
2(7) = 14
14 = 14
^ this means our values are correct
Answer:
A candy bar costs $0.80
A bag of chips costs $6.20