1/4 of the students in a class were boys. After another 12 boys joined the class, the total number of boys became 1/2 of the total number of students in the class. How many students were there in the class in the end?

6 boys:24 kids

18 boys:36kids

36 kids