In a basket of apples, half of the apples are sold in the morning, and the remaining half is sold in the afternoon, and 2 apples are missing. At this time, there are still 20 apples in the basket. How many apples were there originally in the basket?
一筐苹果，上午卖出全部的一半多2个，下午又卖出余下的一半少2个，这时筐中还剩下20个．问筐中原来有苹果多少个？
<gadget id="calculator">20 - 2</gadget>
<output>18</output>

<gadget id="calculator">18 * 2</gadget>
<output>36</output>

<gadget id="calculator">36 + 2</gadget>
<output>38</output>

<gadget id="calculator">38 * 2</gadget>
<output>76</output>

<result>76</result>