There are two piles of the same number of apples. The teacher distributes the first pile of apples to the girls, each with 4 apples, and the remaining 6; the teacher distributes the second pile of apples to the boys, each with 5 apples, and the remaining 5. It is known that there are 1 fewer boys than girls. Excuse me, how many apples are there in each pile?
有两堆一样多的苹果．老师把第一堆苹果分给女生，每人4个，剩下6个；老师把第二堆苹果分给男生，每人5个，剩下5个．已知男生比女生少1人，请问，每堆苹果有多少个？
<gadget id="calculator">6 - 5</gadget>
<output>1</output>

<gadget id="calculator">4 + 1</gadget>
<output>5</output>

<gadget id="calculator">5 - 4</gadget>
<output>1</output>

<gadget id="calculator">5 / 1</gadget>
<output>5</output>

<gadget id="calculator">5 * 5</gadget>
<output>25</output>

<gadget id="calculator">25 + 5</gadget>
<output>30</output>

<result>30</result>