Michael gives away 42/2=<<42/2=21>>21 dollars.

His brother then has 21+17=<<21+17=38>>38 dollars.

In the end, his brother has 38-3=<<38-3=35>>35 dollars.

# Answer

35
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
35
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?
train