immagine these two boats on a coordinate system. The first boat is at

(0,-15) and the is at the origin.

the coordinate of the 1st boat is given by the equation

and the coordinate of the 2nd is

We can find the distance between using the pythagorean theorem.

taking the derivative we get

setting the numerator equal to zero we get

Yeah!!

I hope this helps