A bag contains 24 balls of which x are red