Emily has some lollipops and chocolate bars. If she packs a lollipop and a chocolate bar in each bag, there will be 29 chocolate bars left. If she packs 4 lollipops and 5 chocolate bars in each bag, there will be 13 lollipops left. How many lollipops and chocolate bars does she have in all?
|
Case 1 |
Case 2 |
|
Lollipops |
Chocolate Bars |
Lollipops |
Chocolate Bars |
Before |
1 u |
1 u + 29 |
4 p + 13 |
5 p |
Change |
- 1 u |
- 1 u |
- 4 p |
- 5 p |
After |
0 |
29 |
13 |
0 |
The number of lollipops at first is the same for Case 1 and 2.
The number of chocolate bars at first is also the same for Case 1 and 2.
1 u = 4 p + 13 --- (1)
1 u + 29 = 5 p
1 u = 5 p - 29 --- (2)
(2) = (1)
5 p - 29 = 4 p + 13
5 p - 4 p = 13 + 29
1 p = 42
Total number of lollipops and chocolate bars
= (4 p + 13) + 5 p
= 9 p + 13
= 9 x 42 + 13
= 378 + 13
= 391
Answer(s): 391