Winnie has some chocolate bars and mochi balls. If she packs a chocolate bar and a mochi ball in each bag, there will be 26 mochi balls left. If she packs 4 chocolate bars and 5 mochi balls in each bag, there will be 21 chocolate bars left. How many chocolate bars and mochi balls does she have in all?
|
Case 1 |
Case 2 |
|
Chocolate Bars |
Mochi Balls |
Chocolate Bars |
Mochi Balls |
Before |
1 u |
1 u + 26 |
4 p + 21 |
5 p |
Change |
- 1 u |
- 1 u |
- 4 p |
- 5 p |
After |
0 |
26 |
21 |
0 |
The number of chocolate bars 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 = 4 p + 21 --- (1)
1 u + 26 = 5 p
1 u = 5 p - 26 --- (2)
(2) = (1)
5 p - 26 = 4 p + 21
5 p - 4 p = 21 + 26
1 p = 47
Total number of chocolate bars and mochi balls
= (4 p + 21) + 5 p
= 9 p + 21
= 9 x 47 + 21
= 423 + 21
= 444
Answer(s): 444