There are two piles of coal, A and B, if 12 tons of coal are taken from pile A and put into pile B, then the weight of the two piles of coal will be equal; if 12 tons of coal are taken out of pile B and put into pile A, Then the weight of pile A is twice the weight of pile B. What is the total weight of the two piles of coal A and B?
有甲、乙两堆煤，如果从甲堆煤中取出12吨煤放到乙堆中，那么这两堆煤的重量就相等；如果从乙堆煤中取出12吨煤放到甲堆中，那么甲堆煤的重量是乙堆煤重量的2倍．甲、乙两堆煤共重多少吨．
<gadget id="calculator">12 * 2</gadget>
<output>24</output>

<gadget id="calculator">12 + 12 + 12 + 24</gadget>
<output>60</output>

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

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

<gadget id="calculator">60 + 60 + 12 + 12</gadget>
<output>144</output>

<result>144</result>