You can show the tax calculations as separate workings and you will end up with the same answer.
It is simply that to save time the examiners answer subtracts the depreciation in the NPV calculations (because tax is calculated on the profit after the tax allowable depreciation) and then adds it back because the depreciation is not a cash flow.