Michael has $42. He gives away half of his money to his brother. His brother then buys $3 worth of candy. If his brother has $35 left, how much money, in dollars, did his brother have at first? Let's think step by step and output the final answer within \boxed{}.
user