There are two kinds of chocolate and fruit candy in a bag of sugar. If you take out 1 piece of chocolate, then the amount of chocolate is 4/5 of that of fruit candy. If you take out 1 piece of fruit candy, then the ratio of the number of chocolate to fruit candy is 7: 8. How many pieces of sugar are there in this bag?
一包糖中有巧克力和水果糖两种，如果取出1颗巧克力，那么巧克力的数量是水果糖的(4/5)，如果取出1颗水果糖，那么巧克力与水果糖的数量比是7：8，这包糖有多少颗．
<gadget id="calculator">7 / 8</gadget>
<output>7/8 = around 0.875</output>

<gadget id="calculator">1 + (7/8)</gadget>
<output>15/8 = around 1.875</output>

<gadget id="calculator">4 / 5</gadget>
<output>4/5 = around 0.8</output>

<gadget id="calculator">(7/8) - (4/5)</gadget>
<output>3/40 = around 0.075</output>

<gadget id="calculator">(15/8) / (3/40)</gadget>
<output>25</output>

<gadget id="calculator">(4/5) * 25</gadget>
<output>20</output>

<gadget id="calculator">25 + 20 + 1</gadget>
<output>46</output>

<result>46</result>