Mortgage problem

Question

Hints

Answer