City, county to share cost of flood control