In all, there are 7+5 = 12 equal groups of students in the class, that in total make 36 people. So there are 3 students in each small group. Answer. There are 7*3 = 21 boys and 5*3 = 15 girls.