Hey guys, I haven't been here in awhile (since taking my last algebra class) and now I'm in calculus. You all were a great help then and I hope to tap into the usefulness of this board again! So here is a word problem that I am having trouble with if someone can work it out for me.

1)Minimum CostAn offshore oil well is 1 mile off the coast. The oil refinery is 2 miles down the coast. Laying pipe in the ocean is twice as expensive as laying it on land. Find the most economical path for the pipe from the well to the oil refinery.

I'm drawing a blank for this, I think it requires the use of Pythagorean theorem or use of the hypotenuse to get the function? then take the first derivative to find the critical points and second derivative to check concavity to determine if its a minimum? A complete work through of this problem would be greatly appreciated!