The fifth grade organized public welfare work on weekends. There were 36 people from Class 1 and 24 from Class 2. If the students in the two classes are divided into several groups, and the number of each group should be the same, what is the maximum number of students in each group?
双休日五年级组织公益劳动，五1班来了36人，五2班来了24人．如果把两个班的学生各自分成若干个小组，要使每个小组的人数相同，每组最多有多少人？
<gadget id="calculator">2 * 2 * 3</gadget>
<output>12</output>

<result>12</result>