A boy got 50% of the questions on a test correct. If he had 10 questions correct out of the first 12, and 1/4 of the remaining questions correct, how many questions were on the test ?