Xiao Ming bought a copy of "Story 365" and used half of the money he brought, and bought a pen for 12 yuan. At this time, there was 25 yuan left. How much money did Xiao Ming bring?
小明买一本《故事365》用去他所带钱的一半，又买一支钢笔用去12元，这时还剩25元，小明原来带了多少钱？
<gadget id="calculator">25 + 12</gadget>
<output>37</output>

<gadget id="calculator">37 * 2</gadget>
<output>74</output>

<result>74</result>