At first, a container contained 9 grey balls and some pink beads. After some grey balls were added, 25 of the balls were pink. After 24 black balls were added to the container and now, 29 of the beads were pink. What was the number of grey balls added?