As part of a school-wide fundraiser, the entire 8th grade class of a middle school is asked to split into groups. Each group must have the same number of boys and the same number of girls. If there are 126 boys and 135 girls in the 8th grade, what is the greatest number of groups they could form?