A basket contains 41 balls. The balls are split into two types - tennis balls and cricket balls. If we remove 16 balls from the basket, we get cricket balls. When 9 ping pong balls and 21 basketballs are added to the basket, what is the total number of balls in the basket?