Mom bought some apples, and Xiaoying ate half of them on the first day, and the remaining half on the second day, and there were 3 apples left. How many apples did mom buy?
妈妈买了一些苹果，小英第一天吃了一半，第二天又吃了剩下的一半后，还剩下3个．妈妈买了多少个苹果？
<gadget id="calculator">3 * 2 * 2</gadget>
<output>12</output>

<result>12</result>