There are two boxes of candy, A and B, take out (1/3) from box A, and take 8 pieces from box B. At this time, the two boxes have the same amount, and then take out the rest (1/2) from box B, then the remaining The one below is exactly the original box B (1/3). How many candies are there in the two boxes?
有A、B两盒糖果，从A盒中拿出(1/3)，B盒中拿走8颗，此时两盒一样多，再从B中取出余下的(1/2)，那么剩下的正好是B盒原来的(1/3)．两盒糖果一共有多少颗？
<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">8 / (1/3)</gadget>
<output>24</output>

<gadget id="calculator">24 - 8</gadget>
<output>16</output>

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

<gadget id="calculator">2 / 3</gadget>
<output>2/3 = around 0.666667</output>

<gadget id="calculator">16 / (2/3)</gadget>
<output>24</output>

<gadget id="calculator">24 + 24</gadget>
<output>48</output>

<result>48</result>