There is a wire, 4m was used for the first time, and the remaining half was used; 5m was used for the second time, and the remaining half was used, and 6m was left in the end. How many meters is this wire originally?
有一根电线，第一次用去了4m，又用去余下的一半；第二次用去了5m，又用去余下的一半，最后还剩下6m．问这根电线原来有多少m？
<gadget id="calculator">6 * 2</gadget>
<output>12</output>

<gadget id="calculator">12 + 5</gadget>
<output>17</output>

<gadget id="calculator">17 * 2</gadget>
<output>34</output>

<gadget id="calculator">34 + 4</gadget>
<output>38</output>

<result>38</result>