Xiao Ming, Xiao Hua, and Xiao Qiang share the apples. Xiao Ming first gets half of the pile of apples plus 2, Xiao Hua gets the remaining half of the pile and gets 2 less. Finally, Xiao Qiang gets 13 apples. How many apples are there in this pile?
小明、小华、小强三人分苹果，小明先分得这堆苹果的一半多2个，小华分得余下的一半少2个，最后小强分得13个苹果．求这堆苹果共有多少个？
<gadget id="calculator">13 - 2</gadget>
<output>11</output>

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

<gadget id="calculator">22 + 2</gadget>
<output>24</output>

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

<result>48</result>