A and B baskets of apples are equal in weight. Now take out 12 kilograms of apples from basket A and put them into basket B. As a result, the weight of apples in basket B is 2 kg less than that in basket A. How many kilograms did the two baskets of apples originally weigh?
甲、乙两筐苹果重量相等．现在从甲筐拿出12千克苹果放入乙筐，结果乙筐苹果的重量就比甲筐的3倍少2千克．两筐苹果原来各有多少千克？
<gadget id="calculator">12 * 2</gadget>
<output>24</output>

<gadget id="calculator">24 + 2</gadget>
<output>26</output>

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

<gadget id="calculator">26 / 2</gadget>
<output>13</output>

<gadget id="calculator">13 + 12</gadget>
<output>25</output>

<result>25</result>