Tina saved $27 in June, $14 in July, and $21 in August. Then Tina spent $5 on books and $17 on new shoes. How much money does Tina have left? Let's think step by step and output the final answer after "####".
user
The total amount of money saved is $27 + $14 + $21 = $<<27+14+21=62>>62.
The total amount spent on books and new shoes is $5 + $17 = $<<5+17=22>>22.
Tina has $62 − $22 = $40 left.
#### 40
Tina saved $27 in June, $14 in July, and $21 in August. Then Tina spent $5 on books and $17 on new shoes. How much money does Tina have left?
train