The proceeds of the sale, together with moneys on hand in the treasury of the district, shall after payment of all costs and expenses, be paid to the treasurer of the same county and placed to the credit of the school district, or districts, in which such district is situated.