After buying the toy, Isabel has 51*2=<<51*2=102>>102 dollars left.

Isabel had 102*2=<<102*2=204>>204 dollars at first.

# Answer

204
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Isabel has some money in her piggy bank. She spent half the amount and bought a toy. She then spent half of the remaining money and bought her brother a book. If she has $51 left, how much money, in dollars, did she have at first?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
204
Isabel has some money in her piggy bank. She spent half the amount and bought a toy. She then spent half of the remaining money and bought her brother a book. If she has $51 left, how much money, in dollars, did she have at first?
train