Joelle has some lollipops and mini cupcakes. If she packs a lollipop and a mini cupcake in each bag, there will be 22 mini cupcakes left. If she packs 5 lollipops and 6 mini cupcakes in each bag, there will be 21 lollipops left. How many lollipops and mini cupcakes does she have in all?
|
Case 1 |
Case 2 |
|
Lollipops |
Mini Cupcakes |
Lollipops |
Mini Cupcakes |
Before |
1 u |
1 u + 22 |
5 p + 21 |
6 p |
Change |
- 1 u |
- 1 u |
- 5 p |
- 6 p |
After |
0 |
22 |
21 |
0 |
The number of lollipops at first is the same for Case 1 and 2.
The number of mini cupcakes at first is also the same for Case 1 and 2.
1 u = 5 p + 21 --- (1)
1 u + 22 = 6 p
1 u = 6 p - 22 --- (2)
(2) = (1)
6 p - 22 = 5 p + 21
6 p - 5 p = 21 + 22
1 p = 43
Total number of lollipops and mini cupcakes
= (5 p + 21) + 6 p
= 11 p + 21
= 11 x 43 + 21
= 473 + 21
= 494
Answer(s): 494