Elyse has some chocolate bars and candy canes. If she packs a chocolate bar and a candy cane in each bag, there will be 24 candy canes left. If she packs 4 chocolate bars and 5 candy canes in each bag, there will be 24 chocolate bars left. How many chocolate bars and candy canes does she have in all?
|
Case 1 |
Case 2 |
|
Chocolate Bars |
Candy Canes |
Chocolate Bars |
Candy Canes |
Before |
1 u |
1 u + 24 |
4 p + 24 |
5 p |
Change |
- 1 u |
- 1 u |
- 4 p |
- 5 p |
After |
0 |
24 |
24 |
0 |
The number of chocolate bars at first is the same for Case 1 and 2.
The number of candy canes at first is also the same for Case 1 and 2.
1 u = 4 p + 24 --- (1)
1 u + 24 = 5 p
1 u = 5 p - 24 --- (2)
(2) = (1)
5 p - 24 = 4 p + 24
5 p - 4 p = 24 + 24
1 p = 48
Total number of chocolate bars and candy canes
= (4 p + 24) + 5 p
= 9 p + 24
= 9 x 48 + 24
= 432 + 24
= 456
Answer(s): 456