So think of x as the point that he lands on shore where A is at the origin and B is at x = 6. So the distance he would have to walk on the shore would be 6-x and the distance in the boat would be .

You know that she has a walking speed of 3 mph and we want to know v rowing mph then the total time of her journey is shown as

where t = distance/velocity.

Derive the above expression and set to zero to find the lowest amount of time needed to travel. (Answer should be in terms of x and v and you should derive with respect to x)

You should get something like this:

You then know she is looking for the rowing speed such that her lowest time will be to row straight to the beach meaning she should land at the beach at x = 6 and you can directly enter that into the equation above and solve for v.

and v =