Julie has some sweets and candy canes. If she packs a sweet and a candy cane in each bag, there will be 23 candy canes left. If she packs 3 sweets and 4 candy canes in each bag, there will be 28 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 + 23 |
3 p + 28 |
4 p |
Change |
- 1 u |
- 1 u |
- 3 p |
- 4 p |
After |
0 |
23 |
28 |
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 + 28 --- (1)
1 u + 23 = 4 p
1 u = 4 p - 23 --- (2)
(2) = (1)
4 p - 23 = 3 p + 28
4 p - 3 p = 28 + 23
1 p = 51
Total number of sweets and candy canes
= (3 p + 28) + 4 p
= 7 p + 28
= 7 x 51 + 28
= 357 + 28
= 385
Answer(s): 385