The city by ordinance, and the county by appropriate legislative enactment, under this chapter may pool all or any part of their respective funds available for public health purposes, in the office of the city treasurer or the office of the county treasurer in a special pooling fund to be established in accordance with agreements between the legislative authorities of said city and county and which shall be expended for the combined health department.