Fanny has some mini cupcakes and lollipops. If she packs a mini cupcake and a lollipop in each bag, there will be 27 lollipops left. If she packs 5 mini cupcakes and 6 lollipops in each bag, there will be 18 mini cupcakes left. How many mini cupcakes and lollipops does she have in all?
|
Case 1 |
Case 2 |
|
Mini Cupcakes |
Lollipops |
Mini Cupcakes |
Lollipops |
Before |
1 u |
1 u + 27 |
5 p + 18 |
6 p |
Change |
- 1 u |
- 1 u |
- 5 p |
- 6 p |
After |
0 |
27 |
18 |
0 |
The number of mini cupcakes 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 = 5 p + 18 --- (1)
1 u + 27 = 6 p
1 u = 6 p - 27 --- (2)
(2) = (1)
6 p - 27 = 5 p + 18
6 p - 5 p = 18 + 27
1 p = 45
Total number of mini cupcakes and lollipops
= (5 p + 18) + 6 p
= 11 p + 18
= 11 x 45 + 18
= 495 + 18
= 513
Answer(s): 513