There are a number of soldiers carrying cannonballs. If each of them carries 7 shells, they can carry all the shells. If one soldier only carries 2 shells, the rest of the soldiers carry 8 shells, and they can carry all the shells. shells. How many soldiers are there in total?
有若干名士兵背炮弹，如果每个人背7枚炮弹，正好能够背上全部炮弹，如果其中有一个士兵只背2枚炮弹，剩下的士兵每人背8枚炮弹，正好也能背上全部的炮弹．一共有多少名士兵？
<gadget id="calculator">8 - 2</gadget>
<output>6</output>

<gadget id="calculator">8 - 7</gadget>
<output>1</output>

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

<result>6</result>