Answer:
Coffees cost $2 each and bagels cost $4 each
Explanation:
Let
Coffee=c
Bagels= b
2 coffees and 5 bagels for which he paid $24
2c + 5b= 24 (1)
he returned to buy 3 coffees and 4 bagels for
$22
3c + 4b = 22 (2)
2c + 5b= 24 (1)
3c + 4b = 22 (2)
Multiply (1) by 3 and (2) by 2
6c + 15b = 72 (3)
6c + 8b = 44 (4)
Subtract (4) from (3)
15b - 8b = 72 - 44
7b = 28
Divide both sides by 7
b= 28 / 7
= 4
b= $4
Substitute b=4 into (1)
2c + 5b= 24
2c + 5(4) = 24
2c + 20 = 24
2c = 24 - 20
2c = 4
Divide both sides by 2
c= 4 / 2
c= $2
Therefore,
Coffees cost $2 each and bagels cost $4 each