A pipeline is to be run to a resort community which is on an island 16 kilometres from the closest point on the shoreline. The w
ater source for the pipe is 30 kilometres down the shore. If it costs $500/km to lay pipe through water and $300/km to lay pipe on land, at what point on the shoreline should the pipe turn into the water to minimize cost? What is the total cost?