There are two pencils of the same length. The first one is used up by 12 cm, and the second one is used up by 2 cm. The length of the second pencil is twice that of the first one. How many centimeters are the original lengths of the two pencils?
有两根同样长的铅笔，第一根用去12厘米，第二根用去2厘米后，第二根的长度是第一根的2倍，两根铅笔原来长多少厘米？
<gadget id="calculator">12 - 2</gadget>
<output>10</output>

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

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

<gadget id="calculator">10 + 12</gadget>
<output>22</output>

<result>22</result>