Jaslyn has some lollipops and mini cupcakes. If she packs a lollipop and a mini cupcake in each bag, there will be 18 mini cupcakes left. If she packs 4 lollipops and 5 mini cupcakes in each bag, there will be 19 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 + 18 |
4 p + 19 |
5 p |
Change |
- 1 u |
- 1 u |
- 4 p |
- 5 p |
After |
0 |
18 |
19 |
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 = 4 p + 19 --- (1)
1 u + 18 = 5 p
1 u = 5 p - 18 --- (2)
(2) = (1)
5 p - 18 = 4 p + 19
5 p - 4 p = 19 + 18
1 p = 37
Total number of lollipops and mini cupcakes
= (4 p + 19) + 5 p
= 9 p + 19
= 9 x 37 + 19
= 333 + 19
= 352
Answer(s): 352