Fiona has some sweets and candy canes. If she packs a sweet and a candy cane in each bag, there will be 20 candy canes left. If she packs 3 sweets and 4 candy canes in each bag, there will be 29 sweets left. How many sweets and candy canes does she have in all?
|
Case 1 |
Case 2 |
|
Sweets |
Candy Canes |
Sweets |
Candy Canes |
Before |
1 u |
1 u + 20 |
3 p + 29 |
4 p |
Change |
- 1 u |
- 1 u |
- 3 p |
- 4 p |
After |
0 |
20 |
29 |
0 |
The number of sweets 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 = 3 p + 29 --- (1)
1 u + 20 = 4 p
1 u = 4 p - 20 --- (2)
(2) = (1)
4 p - 20 = 3 p + 29
4 p - 3 p = 29 + 20
1 p = 49
Total number of sweets and candy canes
= (3 p + 29) + 4 p
= 7 p + 29
= 7 x 49 + 29
= 343 + 29
= 372
Answer(s): 372