Risa has some sweets and mochi balls. If she packs a sweet and a mochi ball in each bag, there will be 16 mochi balls left. If she packs 3 sweets and 4 mochi balls in each bag, there will be 28 sweets left. How many sweets and mochi balls does she have in all?
|
Case 1 |
Case 2 |
|
Sweets |
Mochi Balls |
Sweets |
Mochi Balls |
Before |
1 u |
1 u + 16 |
3 p + 28 |
4 p |
Change |
- 1 u |
- 1 u |
- 3 p |
- 4 p |
After |
0 |
16 |
28 |
0 |
The number of sweets 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 + 28 --- (1)
1 u + 16 = 4 p
1 u = 4 p - 16 --- (2)
(2) = (1)
4 p - 16 = 3 p + 28
4 p - 3 p = 28 + 16
1 p = 44
Total number of sweets and mochi balls
= (3 p + 28) + 4 p
= 7 p + 28
= 7 x 44 + 28
= 308 + 28
= 336
Answer(s): 336