Kylie has some chocolate bars and mini cupcakes. If she packs a chocolate bar and a mini cupcake in each bag, there will be 14 mini cupcakes left. If she packs 2 chocolate bars and 3 mini cupcakes in each bag, there will be 30 chocolate bars left. How many chocolate bars and mini cupcakes does she have in all?
|
Case 1 |
Case 2 |
|
Chocolate Bars |
Mini Cupcakes |
Chocolate Bars |
Mini Cupcakes |
Before |
1 u |
1 u + 14 |
2 p + 30 |
3 p |
Change |
- 1 u |
- 1 u |
- 2 p |
- 3 p |
After |
0 |
14 |
30 |
0 |
The number of chocolate bars 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 = 2 p + 30 --- (1)
1 u + 14 = 3 p
1 u = 3 p - 14 --- (2)
(2) = (1)
3 p - 14 = 2 p + 30
3 p - 2 p = 30 + 14
1 p = 44
Total number of chocolate bars and mini cupcakes
= (2 p + 30) + 3 p
= 5 p + 30
= 5 x 44 + 30
= 220 + 30
= 250
Answer(s): 250