Part A
The number of members in the equal-size groups will be the Greatest Common Divisor of the numbers 20 and 25. That number is 5. There are several ways to find this number. One way is to look at the prime factors of 20 and 25:
20 = 2*2*5
25 = 5*5
The largest factor common to both is 5.
There will be 5 students in each group.
Part B
The number of groups is the number of students divided by the size of the group.
There will be 20/5 = 4 groups of sixth graders.
There will be 25/5 = 5 groups of seventh graders.