Length underground = 4-x
Length underwater = sqrt(4 + x2)
Cost = 55(4-x)+95 sqrt(4+x2)
Set the derivative equal to zero and solve for x.
The derivative of cost with respect to x is: -55 + 95x/sqrt(4+x2)=0
95x=55sqrt(4+x2)
This results in x=1.42, 4-x=2.58 and z=2.
Please compare your work with mine.

Paul M.
11/23/22
Isaac H.
I appreciate your help, but I'm not getting anything correct. I found the derivative for each part and solved for x when equal to zero, but the answer was not right on my side.11/23/22
Isaac H.
Your explanation is not giving me the correct answer for my math problem.11/22/22