Mrs. Bell has 24 students. Mr. Dole has 36 students in his class. The two classes are working on the same project and so the students in each class need to be split up into equally sized groups. What is the maximum number of students that can be in each group.