A board of supervisors may, by ordinance, permit the use of any county highway which connects with a main county highway of an adjoining county, by the board of supervisors of such adjoining county for the purpose of constructing and maintaining thereon a highway serving the needs of residents of both counties.