There are two piles of coal, A and B. If 12 tons are transported from pile A to pile B, then the two piles of coal will have the same weight. If 12 tons are transported from pile B to pile A, then pile A's coal is twice as much coal as pile B. How many tons do these two piles of coal weigh together?
有甲、乙两堆煤，如果从甲堆运12吨给乙堆，那么两堆煤就一样重．如果从乙堆运12吨给甲堆，那么甲堆煤就是乙堆煤的2倍．这两堆煤共重多少吨？
<gadget id="calculator">12 * 2</gadget>
<output>24</output>

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

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

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

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

<gadget id="calculator">48 * 3</gadget>
<output>144</output>

<result>144</result>