Kylie has some chocolate bars and mini cupcakes. If she packs a chocolate bar and a mini cupcake in each bag, there will be 11 mini cupcakes left. If she packs 3 chocolate bars and 4 mini cupcakes in each bag, there will be 21 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 + 11 |
3 p + 21 |
4 p |
Change |
- 1 u |
- 1 u |
- 3 p |
- 4 p |
After |
0 |
11 |
21 |
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 = 3 p + 21 --- (1)
1 u + 11 = 4 p
1 u = 4 p - 11 --- (2)
(2) = (1)
4 p - 11 = 3 p + 21
4 p - 3 p = 21 + 11
1 p = 32
Total number of chocolate bars and mini cupcakes
= (3 p + 21) + 4 p
= 7 p + 21
= 7 x 32 + 21
= 224 + 21
= 245
Answer(s): 245