There are two pieces of cloth with the same length. The first piece is sold for 36 meters, and the second piece is sold for 24 meters. As a result, the remaining cloth of the second piece is twice that of the first piece. What is the length of each of the two pieces of cloth?
有两块同样长的布，第一块卖出36米，第二块卖出24米，结果第二块剩下的布是第一块剩下的布的2倍．两块布原来每一块的长是多少米？
<gadget id="calculator">2 - 1</gadget>
<output>1</output>

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

<gadget id="calculator">36 - 24</gadget>
<output>12</output>

<gadget id="calculator">12 + 36</gadget>
<output>48</output>

<result>48</result>