See the attached picture for the calculation.
Although the pipe line would be longer along the roads it would be cheaper.
5.1m questions
6.7m answers