There are some brown and yellow balls in a container. If 9 brown balls are removed from the container, the total number of balls left will be 7 times the number of brown balls left. If 18 yellow balls are removed from the container, the total number of balls left will be 3 times the number of brown balls. How many balls are there in the container?
|
Case 1 |
Case 2 |
|
Brown balls |
Yellow balls |
Brown balls |
Yellow balls |
Before |
1 u + 9 |
6 u |
1 p |
2 p + 18 |
Change |
- 9 |
|
|
- 18 |
After |
1 u |
6 u |
1 p |
2 p |
Number of yellow balls in the end for Case 1
= 7 u - 1 u
= 6 u
Number of brown balls in the end for Case 2
= 3 p - 1 p
= 2 p
The number of brown balls at first is the same for Case 1 and Case 2.
The number of yellow balls at first is also the same for Case 1 and Case 2.
1 u + 9 = 1 p --- (1)
6 u = 2 p + 18
6 u - 18 =
2 p --- (2)
Make p the same.
(1)
x2 2 u + 18 =
2 p --- (3)
(2) = (3)
6 u - 18 = 2 u + 18
6 u - 2 u = 18 + 18
4 u = 36
1 u = 36 ÷ 4 = 9
Number of balls in the container
= (1 u + 9) + 6 u
= 7 u + 9
= (7 x 9) + 9
= 63 + 9
= 72
Answer(s): 72