A basket of apples is distributed to A, B, and C. A gets all (1/5) plus 5 apples, B gets all (1/4) plus 7, C gets half of the rest, and the last remaining It is all (1/8), how many apples are there in this basket?
一篓苹果分给甲、乙、丙，甲分得全部的(1/5)加5个，乙分得全部的(1/4)加7个，丙分得其余的一半，最后剩下的是全部的(1/8)，这篓苹果共有多少个？
<gadget id="calculator">5 + 7</gadget>
<output>12</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 / 8</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">(1/8) * 2</gadget>
<output>1/4 = around 0.25</output>

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

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

<result>40</result>