Well, we kinda hope that noone is splitting the students into parts;) so that means that the number of students must be divisible by 4 and 9, and since they don't have any divisors in common, it must be divisible by 4*9=36, and this is also the correct answer - 36.