The information given is that there are 12 boys and 16 girls in the classroom. The question is not about the ratio of girls to boys but about the ratio of girls to STUDENTS. You need to add the amount of girls plus the amount of boys to get the total amount of students.