Mrs. Cantonwine teaches 2 math classes. There are 28 students in 6A and 21 students in 6B. She divided both classes into groups of equal size. How many students are in a group?