$18 is shared among 3 boys. The eldest added $5 to his share and added another $10 the following day. He later needed some money and spent $8 from his total so far. After saving some more, he was able to triple the amount he had left after spending the $8. How much does he have now?
Each boy gets $18/3 = $
<gadget id="calculator">18/3</gadget>
<output>6</output>
6.
The eldest had $5+$6=$
<gadget id="calculator">5+6</gadget>
<output>11</output>
11 after adding $5 to his share.
He added another $10 so he had $11+$10=$
<gadget id="calculator">11+10</gadget>
<output>21</output>
21.
Then he had $21-$8=$
<gadget id="calculator">21-8</gadget>
<output>13</output>
13 after spending $8.
So, he now has $13*3=$
<gadget id="calculator">13*3</gadget>
<output>39</output>
39.

<result>39</result>