Whenever any real property situate in any district which has availed itself of county assessments has been sold for taxes and has been redeemed, the money paid for redemption shall be apportioned and paid by the county treasurer receiving it to the district, in the proportion which the tax due to the district bears to the total tax for which the property was sold.