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

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

<gadget id="calculator">24 + 5</gadget>
<output>29</output>

<gadget id="calculator">29 * 2</gadget>
<output>58</output>

<gadget id="calculator">58 + 5</gadget>
<output>63</output>

<gadget id="calculator">63 * 2</gadget>
<output>126</output>

<result>126</result>