The books will cost $40 because 8 x 5 = <<8*5=40>>40
He needs to save up $27 because 40 - 13 = <<40-13=27>>27
#### 27