Michael has $42. Michael gives away half the money to his brother. His brother then buys 3 dollars worth of candy. If his brother has $35 left, how much money, in dollars, did his brother have at first?
Michael gives away 42/2=
<gadget id="calculator">42/2</gadget>
<output>21</output>
21 dollars.
Before buying candy, his brother has 35+3=
<gadget id="calculator">35+3</gadget>
<output>38</output>
38 dollars.
His brother had 38-21=
<gadget id="calculator">38-21</gadget>
<output>17</output>
17 dollars at first.

<result>17</result>