The English and Social Studies classes are participating in an Egyptian Exhibit. One class has 25 students and the other class has 35 students. The teachers want to divide the students into the largest possible equal groups, with no students left over. If all the groups have the same number of students, how many students are in each group?