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