Answer:
After 3 hours.
Step-by-step explanation:
This is a encounter problem.
We start by writing the position equation of both objects.
We assume that acceleration is equal to zero in both boats ⇒ They move with constant speed
We put the origin of coordinates in the harbour so after 6 hours the first boat travels

The first boat will be 42 mi far from the harbour.
The position equation for a motion with acceleration equal to zero is :

Where
is initial position
v is the speed
t is time and
is initial time
Then
is time variation
For the first boat :

Because we set

For the second one :

In the encounter : x1(t) = x2(t) ⇒


So after 3 hours they have the same position relative to the harbour
We can check by replacing the value t = 3h in both position equations
For x1(t) :

For x2(t) :
