There are 6 boys and 9 girls. There are two piles of apples with the same number. The teacher distributes the first pile of apples to the boys. There are 4 apples left. The teacher distributes the second pile of apples to the girls. There are the same number of people, and there will be 7 remaining. It is known that each boy has 8 more apples than each girl, so how many apples are there in total?
有男生6人，有女生9人，有两堆苹果个数相同，老师将第一堆苹果分给男生，每人一样多，还剩下4个，老师将第二堆苹果分给女生，每人一样多，还会剩下7个，已知男生每人比女生每人多分了8个，那么一共有多少个苹果？
<gadget id="calculator">6 * 8</gadget>
<output>48</output>

<gadget id="calculator">4 - 7</gadget>
<output>-3</output>

<gadget id="calculator">48 + (-3)</gadget>
<output>45</output>

<gadget id="calculator">9 - 6</gadget>
<output>3</output>

<gadget id="calculator">45 / 3</gadget>
<output>15</output>

<gadget id="calculator">15 * 9</gadget>
<output>135</output>

<gadget id="calculator">135 + 7</gadget>
<output>142</output>

<gadget id="calculator">142 * 2</gadget>
<output>284</output>

<result>284</result>