Primes and Composites: There are 20 boys and 24 girls in an Algebra I class. The class is so large that the teacher wants to divide the students into gender-specific groups (all boys or all girls). Each group needs to have the same number of students.

1. Explain the process the teacher will use to determine how many students will be in each group using appropriate mathematical terms from number theory.