A basket of apples is distributed to A, B, and C. A gets 1/5 of the total (1/5) more than 5 kg, B gets 7 kg more than 1/4 of the total, and C gets the remaining half. The one below is (1/8) of the total. How many kilograms does this box of apples have?
一筐苹果分给甲、乙、丙三人，甲分到总数的(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 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">(1/8) / (1/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>