Roshel has some mochi balls and candy canes. If she packs a mochi ball and a candy cane in each bag, there will be 26 candy canes left. If she packs 4 mochi balls and 5 candy canes in each bag, there will be 22 mochi balls left. How many mochi balls and candy canes does she have in all?
|
Case 1 |
Case 2 |
|
Mochi Balls |
Candy Canes |
Mochi Balls |
Candy Canes |
Before |
1 u |
1 u + 26 |
4 p + 22 |
5 p |
Change |
- 1 u |
- 1 u |
- 4 p |
- 5 p |
After |
0 |
26 |
22 |
0 |
The number of mochi balls 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 = 4 p + 22 --- (1)
1 u + 26 = 5 p
1 u = 5 p - 26 --- (2)
(2) = (1)
5 p - 26 = 4 p + 22
5 p - 4 p = 22 + 26
1 p = 48
Total number of mochi balls and candy canes
= (4 p + 22) + 5 p
= 9 p + 22
= 9 x 48 + 22
= 432 + 22
= 454
Answer(s): 454