The first boat travels at 9 miles per hour for 3 hours before the second boat, traveling 18 miles per hour, begins following behind. To calculate how long it will take the second boat to pass the first, we determine the distance each has traveled over time T. Equating the distances traveled shows the second boat will overtake the first in 3 more hours, for a total time of 3 hours.