Xylia has some chocolate bars and candy canes. If she packs a chocolate bar and a candy cane in each bag, there will be 25 candy canes left. If she packs 2 chocolate bars and 3 candy canes in each bag, there will be 11 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 + 25 |
2 p + 11 |
3 p |
Change |
- 1 u |
- 1 u |
- 2 p |
- 3 p |
After |
0 |
25 |
11 |
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 = 2 p + 11 --- (1)
1 u + 25 = 3 p
1 u = 3 p - 25 --- (2)
(2) = (1)
3 p - 25 = 2 p + 11
3 p - 2 p = 11 + 25
1 p = 36
Total number of chocolate bars and candy canes
= (2 p + 11) + 3 p
= 5 p + 11
= 5 x 36 + 11
= 180 + 11
= 191
Answer(s): 191