There are two baskets of balls. If eight balls are taken from basket A and placed in basket B, the number of balls in the two baskets will be the same. If 8 balls are taken from basket B and placed in basket A, the number of balls in basket A is twice that of basket B. How many balls are there in a basket?
有两筐皮球，若从甲筐拿出8个放到乙筐里，两筐的皮球数就一样多．若从乙筐拿出8个放到甲筐里，甲筐的皮球是乙筐的2倍．甲筐原有皮球多少个．
<gadget id="calculator">8 * 2</gadget>
<output>16</output>

<gadget id="calculator">16 + 16</gadget>
<output>32</output>

<gadget id="calculator">32 * 2</gadget>
<output>64</output>

<gadget id="calculator">64 - 8</gadget>
<output>56</output>

<result>56</result>