We will calculate the distance between the two ships as a function of time.
We can make a diagram for the situation as:
The ships are moving orthogonally, so we can calculate the distance as the hypotenuse of a right triangle.
The legs of this triangle will be the distance travelled.
As we know the speed v we can express the distance as the speed times the time: d = v*t.
We then can express the distance as:

Answer: the distance is approximately 32.9t (in km), given that time is expressed in hours.