Xiaofang bought a pencil case and used half of the money she brought, and there was an extra 5 yuan, and the remaining money just bought a 12 yuan pen. How much money did Xiaofang bring in total?
小芳买一个铅笔盒用去所带钱的一半还多5元，剩下的钱刚好买了一枝12元的钢笔．小芳一共带了多少元钱？
<gadget id="calculator">12 + 5</gadget>
<output>17</output>

<gadget id="calculator">17 * 2</gadget>
<output>34</output>

<result>34</result>