Diana has some mochi balls and lollipops. If she packs a mochi ball and a lollipop in each bag, there will be 15 lollipops left. If she packs 4 mochi balls and 5 lollipops in each bag, there will be 20 mochi balls left. How many mochi balls and lollipops does she have in all?
|
Case 1 |
Case 2 |
|
Mochi Balls |
Lollipops |
Mochi Balls |
Lollipops |
Before |
1 u |
1 u + 15 |
4 p + 20 |
5 p |
Change |
- 1 u |
- 1 u |
- 4 p |
- 5 p |
After |
0 |
15 |
20 |
0 |
The number of mochi balls at first is the same for Case 1 and 2.
The number of lollipops at first is also the same for Case 1 and 2.
1 u = 4 p + 20 --- (1)
1 u + 15 = 5 p
1 u = 5 p - 15 --- (2)
(2) = (1)
5 p - 15 = 4 p + 20
5 p - 4 p = 20 + 15
1 p = 35
Total number of mochi balls and lollipops
= (4 p + 20) + 5 p
= 9 p + 20
= 9 x 35 + 20
= 315 + 20
= 335
Answer(s): 335