The first class of four years buys 252 homework books, the second class buys 270 homework books, and each person buys 6 homework books. How many people are there in the two classes?
四年一班买作业本252本，二班买作业本270本，每人买作业本6本．两班一共有多少人？
<gadget id="calculator">252 + 270</gadget>
<output>522</output>

<gadget id="calculator">522 / 6</gadget>
<output>87</output>

<result>87</result>