Whenever the highway on the line between two counties has not been divided and portions thereof assigned to each county, and it is intended to build, alter, or repair the bridges thereon, the cost shall be borne equally by such counties.
SDCL 31-14-38