The cost of the survey shall be borne jointly by the state and county or any other local agency and by the federal government in a proportion to be determined by the availability of funds and of trained personnel for the purpose.