Jean has some candy canes and mochi balls. If she packs a candy cane and a mochi ball in each bag, there will be 10 mochi balls left. If she packs 3 candy canes and 4 mochi balls in each bag, there will be 18 candy canes left. How many candy canes and mochi balls does she have in all?
|
Case 1 |
Case 2 |
|
Candy Canes |
Mochi Balls |
Candy Canes |
Mochi Balls |
Before |
1 u |
1 u + 10 |
3 p + 18 |
4 p |
Change |
- 1 u |
- 1 u |
- 3 p |
- 4 p |
After |
0 |
10 |
18 |
0 |
The number of candy canes at first is the same for Case 1 and 2.
The number of mochi balls at first is also the same for Case 1 and 2.
1 u = 3 p + 18 --- (1)
1 u + 10 = 4 p
1 u = 4 p - 10 --- (2)
(2) = (1)
4 p - 10 = 3 p + 18
4 p - 3 p = 18 + 10
1 p = 28
Total number of candy canes and mochi balls
= (3 p + 18) + 4 p
= 7 p + 18
= 7 x 28 + 18
= 196 + 18
= 214
Answer(s): 214