Hello, rai2003!
There's something missing from your problem.
A boat with an ill passenger is 7 1/2 mi north of a straight coastline which runs
east and west. A hospital on the coast is 60 miles from the point on shore south
of the boat. If the boat starts toward shore at 15 mph at the same time
an ambulance leaves the hospital at 60 mph and meets the ambulance
in the least amount of time, what is the total distance (to the nearest 0.5 mile)
traveled by the boat and the ambulance? Code:
B o
| * ___________
| * √x^2 + 7.5^2
7.5 | *
| *
| *
S o-----------------o---------------o
: - - - x - - - P - - 60-x - - H
: - - - - - - - 60 - - - - - - - :
The boat is at
, 7.5 miles from shore: . 
The hospital is at
: . 
The boat heads for point
at 15 mph: . 
Its distance
is the hypotenuse of a right triangle.
. . Hence: .
miles.
At 15 mph, this will take: .
hours.
At the same time, the ambulance goes from
to
at 60 mph.
Its distance is: .
miles.
At 60 mph, this will take: .
hours.
The total time is: . ^{\frac{1}{2}}}{15} + 1 - \dfrac{x}{60})
And that is the function we must mininize.
Once we find
, we can determine the distances travelled.