Zoe has some candy canes and chocolate bars. If she packs a candy cane and a chocolate bar in each bag, there will be 14 chocolate bars left. If she packs 3 candy canes and 4 chocolate bars in each bag, there will be 29 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 + 14 |
3 p + 29 |
4 p |
Change |
- 1 u |
- 1 u |
- 3 p |
- 4 p |
After |
0 |
14 |
29 |
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 = 3 p + 29 --- (1)
1 u + 14 = 4 p
1 u = 4 p - 14 --- (2)
(2) = (1)
4 p - 14 = 3 p + 29
4 p - 3 p = 29 + 14
1 p = 43
Total number of candy canes and chocolate bars
= (3 p + 29) + 4 p
= 7 p + 29
= 7 x 43 + 29
= 301 + 29
= 330
Answer(s): 330