A pile of apples, take half of it for the first time and 1, take the remaining half and 2 for the second time, and there are still 3 at this time. How many apples were there?
一堆苹果，第一次拿走它的一半又1个，第二次拿走余下的一半又2个，这时还有3个．原来有多少个苹果？
<gadget id="calculator">3 + 2</gadget>
<output>5</output>

<gadget id="calculator">5 * 2</gadget>
<output>10</output>

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

<gadget id="calculator">11 * 2</gadget>
<output>22</output>

<result>22</result>