By agreement with the department, a county or city may transfer all or part of the funds apportioned to it under this chapter to a qualifying safer off-system roads project on a road under other governmental jurisdiction in the same county, or to a qualifying project in another county under such terms and conditions as are agreed upon by the department and the counties or cities, as the case may be, involved.