Julia spend $40 / 2 = $<<40/2=20>>20 on the game.

After buying the game, she has $40 - $20 = $<<40-20=20>>20 left.

She spent $20 / 4 = $<<20/4=5>>5 on in-game purchases.

She has $20 - $5 = $<<20-5=15>>15 left.

# Answer

15
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Julia has $40. She spends half of her money to buy a new game for her phone. She spends a quarter of what she has left on in-game purchases. How much money does she have left?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
15
Julia has $40. She spends half of her money to buy a new game for her phone. She spends a quarter of what she has left on in-game purchases. How much money does she have left?
train