A basket of apples is distributed to A, B, and C. A gets 1/5 of all the apples plus 5 apples, B gets 1/4 of all the apples plus 7 apples, and C gets the rest of the apples (1/2), the last remaining apples are exactly equal to (1/8) of a basket of apples. How many apples are in this basket?
一篓苹果分给甲、乙、丙3人，甲分得全部苹果的(1/5)加5个苹果，乙分得全部苹果的(1/4)加7个苹果，丙分得其余苹果的(1/2)，最后剩下的苹果正好等于一篓苹果的(1/8)．这篓苹果有多少个？
<gadget id="calculator">5 + 7</gadget>
<output>12</output>

<gadget id="calculator">1 / 8</gadget>
<output>1/8 = around 0.125</output>

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

<gadget id="calculator">1 / 4</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">1 - (1/8) - (1/8) - (1/5) - (1/4)</gadget>
<output>3/10 = around 0.3</output>

<gadget id="calculator">12 / (3/10)</gadget>
<output>40</output>

<result>40</result>