There are 18 male students and 24 female students in a grade 10 math class. The math teacher
wants to divide the class into groups that will have equal amounts of girls in each group and
equal amounts of boys in each group. What is the greatest number of groups that the teacher can
make?