contestada

There are 16 sixth graders and 24 seventh graders attending a play. The teachers want to have the same number of students in each row.
If a row can contain only sixth grader or only seventh graders, what is the greatest number of student that can be in a row?
BRAINLIEST TO FIRST PERSON WHO GETS IT RIGHT, SHOWS WORK, AND EXPLAINS!!!!!!!!!!!! :)