There is a basket of apples, half of the total and 5 are sold for the first time, the remaining half and 4 are sold for the second time, and the remaining half and 3 are sold for the third time, leaving 9. How many apples are there in this basket?
有一筐苹果，第一次卖出总数的一半又5个，第二次卖出余下的一半又4个，第三次又卖出第二次余下的一半又3个，还剩9个．这筐苹果共有多少个？
<gadget id="calculator">9 + 3</gadget>
<output>12</output>

<gadget id="calculator">12 * 2</gadget>
<output>24</output>

<gadget id="calculator">24 + 4</gadget>
<output>28</output>

<gadget id="calculator">28 * 2</gadget>
<output>56</output>

<gadget id="calculator">56 + 5</gadget>
<output>61</output>

<gadget id="calculator">61 * 2</gadget>
<output>122</output>

<result>122</result>