Given that,
Speed of ship A vA=10km/h
Speed of ship BvB=10km/h
Distance d=10km
Now, according to diagram
the shortest distance between the ship A and B is PQ
sin450=PQOQ
PQ=100×1√2
PQ=50√2km
Now, the velocity is
vAB=√v2A+v2B
vAB=√(10)2+(10)2
vAB=10√2km/h
Now, the time taken is
t=50√210√2
t=5h
Hence, the time after to reach shortest path is 5 h