After deduction of those costs of the state treasurer that are described under *RCW
36.22.180, the balance of the funds will be distributed to the counties according to the following formula: One-half of the funds available shall be equally distributed among the thirty-nine counties; and the balance will be distributed among the counties in direct proportion to their population as it relates to the total state's population based on the most recent population statistics.