Let x be the distance (in miles) between the customer's driveway and the point where the cable should be laid on the highway.
Length of cable along the highway : 5 - x
Cost : 10.( 5 - x ) dollars
Length of cable along the countryside from the highway to the house : √(4+x²)
(use the Pythagorean theorem to prove this)
Cost : 14.√(4+x²)
Total cost :
f(x) = 14.√(4+x²) + 10.( 5 - x )
Study that function of x, while 0<x<5.
f '(x) = 14x/√(4+x²) - 10
f '(x) = 0 iff x = 5/√(6)
That's the point where the cable should be installed.
Get the final (and minimum) cost by evaluating f (5/√6) = 50 + 8√6 ~ 69.6 dollars
If I do no mistake....