Gerald and Julia divided $100 in the ratio 3:2. If Gerald spent $10 on a book, how much money did he have left?
The $100 was divided into 3 + 2 = 
<gadget id="calculator">3+2</gadget>
<output>5</output>
5 parts.
So each part is $100/5 = $
<gadget id="calculator">100/5</gadget>
<output>20</output>
20.
So Gerald received $20 x 3 = $
<gadget id="calculator">20*3</gadget>
<output>60</output>
60.
Gerald bought a book at $
<gadget id="calculator">10</gadget>
<output>10</output>
10.
Therefore, Gerald was left with $60 - $10 = $
<gadget id="calculator">60-10</gadget>
<output>50</output>
50.

<result>50</result>