Xiao Ming has some money, first he spends half of it for more than 3 yuan, and then uses the remaining half for less than 5 yuan, and finally leaves 17 yuan, how much is it?
小明有一些钱，先用去一半多3元，后来又用去余下的一半少5元，最后剩下17元，求原来多少？
<gadget id="calculator">17 - 5</gadget>
<output>12</output>

<gadget id="calculator">12 * 2</gadget>
<output>24</output>

<gadget id="calculator">24 + 3</gadget>
<output>27</output>

<gadget id="calculator">27 * 2</gadget>
<output>54</output>

<result>54</result>