A small resort is situated on an island that lies exactly 6 miles from P, the nearest point to the island along a perfectly straight shoreline. 10 miles down the shoreline from P is the closest source of fresh water. If it costs 1.7 times as much money to lay pipe in the water as it does on land, how far down the shoreline from P should the pipe from the island reach land in order to minimize the total construction costs? I cannot figure out an equation for this problem that i will be able to use to find the derivative then set equal to 0 and solve for x to get the minimal cost =( Any help would be great. thank you