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