Joelle has some sweets and chocolate bars. If she packs a sweet and a chocolate bar in each bag, there will be 30 chocolate bars left. If she packs 5 sweets and 6 chocolate bars in each bag, there will be 26 sweets left. How many sweets and chocolate bars does she have in all?
|
Case 1 |
Case 2 |
|
Sweets |
Chocolate Bars |
Sweets |
Chocolate Bars |
Before |
1 u |
1 u + 30 |
5 p + 26 |
6 p |
Change |
- 1 u |
- 1 u |
- 5 p |
- 6 p |
After |
0 |
30 |
26 |
0 |
The number of sweets 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 = 5 p + 26 --- (1)
1 u + 30 = 6 p
1 u = 6 p - 30 --- (2)
(2) = (1)
6 p - 30 = 5 p + 26
6 p - 5 p = 26 + 30
1 p = 56
Total number of sweets and chocolate bars
= (5 p + 26) + 6 p
= 11 p + 26
= 11 x 56 + 26
= 616 + 26
= 642
Answer(s): 642