Xiao Ming collected some stamps, and he took out 5 more than half of the stamps and gave them to Xiao Liang, and he had 17 left. How many cards did Xiao Ming have?
小明收集了一些邮票，他拿出邮票的一半多5张送给小亮，自己还剩17张．小明原来有多少张？
<gadget id="calculator">17 + 5</gadget>
<output>22</output>

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

<result>44</result>