Bill owns an oil well located 400m from a road. Bill wants to connect the well to a storage tank 1200m down the road from the well. It costs #35/m to lay pipe along the road and #50/m to lay it elsewhere. How should the pipeline be laid to minimize the total cost?
Neat, Complete and Step-by-step solution to the problem. Includes a sketch of the problem as well.