Students from Class 1 and Class 2 of the fifth grade went on a spring outing in groups. The number of students in both classes was equal. The first class is divided into 4 groups on average, and the second class is divided into 6 groups on average. As a result, each group of the first class has 4 more students than the second class. How many students are there in these two classes?
五年级一班、二班同学分组去春游，两班人数相等．一班平均分成4个组，二班平均分成6个组，结果一班每组比二班多4人，这两个班共有学生多少人？
<gadget id="calculator">4 * 4</gadget>
<output>16</output>

<gadget id="calculator">6 - 4</gadget>
<output>2</output>

<gadget id="calculator">16 / 2</gadget>
<output>8</output>

<gadget id="calculator">6 * 8</gadget>
<output>48</output>

<gadget id="calculator">48 + 48</gadget>
<output>96</output>

<result>96</result>