Final answer:
To minimize the cost of the pipeline, the optimal location for point P should be determined by solving the equation 400,000 * x + 800,000 * (7 - x) = total cost, where x is the distance from the refinery to point P.
Step-by-step explanation:
To minimize the cost of the pipeline, we need to find the optimal location for point P on the north bank of the river. Let's assume that the distance from the refinery to point P is x km. The distance from point P to the storage tanks on the south bank is then 7 - x km.
The cost of laying pipe over land is $400,000/km, so the cost of laying pipe from the refinery to point P is 400,000 * x dollars. The cost of laying pipe under the river is $800,000/km, so the cost of laying pipe from point P to the storage tanks is 800,000 * (7 - x) dollars.
The total cost of the pipeline is the sum of these two costs. To minimize this cost, we need to find the value of x that minimizes the total cost.
To solve for x, we can set up an equation:
400,000 * x + 800,000 * (7 - x) = total cost
By simplifying and solving this equation, we can find the optimal location for point P.