Michael has $42. His brother has $17. Michael gives away half the money to his brother. His brother then buys 3 dollars worth of candy. How much money, in dollars, did his brother have in the end?
Michael gives away 42/2=
<gadget id="calculator">42/2</gadget>
<output>21</output>
21 dollars.
His brother then has 21+17=
<gadget id="calculator">21+17</gadget>
<output>38</output>
38 dollars.
In the end, his brother has 38-3=
<gadget id="calculator">38-3</gadget>
<output>35</output>
35 dollars.

<result>35</result>