Xiaojun collected some stamps. He took out half of the stamps and gave them to Xiaogang. He still had 40 stamps. How many stamps did Xiaojun have?
小军收集了一些邮票，他拿出邮票的一半还多2张送给了小刚，自己还有40张，小军原来有多少张邮票．
<gadget id="calculator">40 + 2</gadget>
<output>42</output>

<gadget id="calculator">42 * 2</gadget>
<output>84</output>

<result>84</result>