Anything remaining after the following amounts have been paid must be paid to the State—
(a) the amount of the unimproved value of the deed of grant in trust;
(b) the amount of the mortgage debt;
(c) the expenses incurred in selling the land;
(d) all other reasonable deductions.