The county treasurer shall apportion the general school fund of the county based upon the average daily membership of the school districts within the county. Each school district within the county shall receive its pro rata share of the general school fund of the county.