I’m guessing you would need to find the GCF of both numbers.
108: 1, 2, 3, 4, 6, 9, 12, 18, 27, 54, 108
102: 1, 2, 3, 6, 17, 34, 51, 102
Both has the GCF of 6 (if that’s how you word it)
Your answer would be 6 students on each team. And I have no idea if it’s called GCF for both numbers. Probably is, but eh.