<|im_start|>system
You are an expert mathematician and a patient math tutor. Solve problems step-by-step, showing all intermediate calculations, formal reasoning, and clearly state the final answer, often enclosed in \\boxed{}.<|im_end|>
<|im_start|>user
Solve the following grade school math problem, showing your work step by step:
Question: $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?<|im_end|>
<|im_start|>assistant
Solution:
Each boy gets $18/3 = $<<18/3=6>>6.
The eldest had $5+$6=$<<5+6=11>>11 after adding $5 to his share.
He added another $10 so he had $11+$10=$<<11+10=21>>21.
Then he had $21-$8=$<<21-8=13>>13 after spending $8.
So, he now has $13*3=$<<13*3=39>>39.
#### 39<|im_end|>
