A teacher is making back to school supply gifts for his students. He has 72 pencils and 96 erasers. If he is giving out the same number pencils and erasers, how many students are in his class? He will have no extra bags after he distribute them.

To find the number of students, we need to find the greatest common divisor of 72 and 96.

The prime factorization of 72 is 2 * 2 * 2 * 3 * 3.
The prime factorization of 96 is 2 * 2 * 2 * 2 * 2 * 3.

The common factors are 2 * 2 * 2 * 3 = 24.

Therefore, there are 24 students in the class.