Sixth grade students participate in voluntary labor. There are 42 people in the first class, and 47 people in the second class. After the same number of people are dispatched from both classes to clean the public square, the remaining number of people in the first class is the second class (7/12). How many people are transferred from each class?
六年级同学参加义务劳动．一班有42人，二班有47人，两班都调出同样多的人去打扫市民广场后，一班剩下的人数是二班的(7/12)．两班各调出多少人？
<gadget id="calculator">7 / 12</gadget>
<output>7/12 = around 0.583333</output>

<gadget id="calculator">47 * (7/12)</gadget>
<output>329/12 = around 27.416667</output>

<gadget id="calculator">42 - (329/12)</gadget>
<output>175/12 = around 14.583333</output>

<gadget id="calculator">1 - (7/12)</gadget>
<output>5/12 = around 0.416667</output>

<gadget id="calculator">(175/12) / (5/12)</gadget>
<output>35</output>

<result>35</result>