There are 500 red and blue balls in a ball pit. 30% of the balls are red.
When some of the blue balls were taken out, 40% of the remaining balls
were red. How many balls were taken out?