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?
Julia spend $40 / 2 = $
<gadget id="calculator">40/2</gadget>
<output>20</output>
20 on the game.
After buying the game, she has $40 - $20 = $
<gadget id="calculator">40-20</gadget>
<output>20</output>
20 left.
She spent $20 / 4 = $
<gadget id="calculator">20/4</gadget>
<output>5</output>
5 on in-game purchases.
She has $20 - $5 = $
<gadget id="calculator">20-5</gadget>
<output>15</output>
15 left.

<result>15</result>