A cruise ship left the Dania Pier and traveled east at an average speed of 15km/h. A container ship left three hours later and traveled in the same direction but with an average speed of 20 km/h. How long did the cruise ship travel before the container ship caught up?