Should such real estate investment be sold to the state during its occupancy as tenant, the board of trustees of the fund shall accept, in full payment therefor, as well as for any state lands theretofore conveyed to it in connection therewith, the total actual cost thereof. In the event that any sums shall have been paid to the fund toward amortization of the investment, the aggregate amount thereof at the time of closing of title shall be credited against the purchase price.
N.J.S. § 18A:66-87