Hi,
green, black and blue balls in the ratio 5:2:1
Basket originally contains 8x balls: 5x green, 2x black and x blue
If there are 10 blue balls (x = 10)
Basket originally contains 80 balls: 50 green, 20 black and 10 blue
10 green and 10 black balls are removed
Then
Basket originally contains 60 balls: 40 green, 10 black and 10 blue
and ratio is: 4:1:1