Mom bought some apples. Xiao Ming ate half of them on the first day and got 2 more apples. On the second day, he ate the remaining half and got 2 less apples. How many apples did his mother buy?
妈妈买了一些苹果，小明第一天吃了一半多2个，第二天吃了剩下的一半少2个还剩5个，妈妈买了多少个苹果？
<gadget id="calculator">5 - 2</gadget>
<output>3</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">3 / (1/2)</gadget>
<output>6</output>

<gadget id="calculator">6 + 2</gadget>
<output>8</output>

<gadget id="calculator">8 / (1/2)</gadget>
<output>16</output>

<result>16</result>