Three classes at a school have 18, 24, and 27 students. All three will be divided into project groups. Each group must have the same number of students, and all the students in a group must be in the same class. What is the largest group size possible?