Whenever any real property situated in any district which availed itself of county collection of assessments under this chapter 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 assessment due to the district shares to the total tax and assessment for which the property was sold.