The time required to travel by ship A from A to C is, t=vAxAt=20xA The time required to travel by ship B is, t=vBxBt=10xB From above two equations, 20xA=10xBxA=2xB The shortest distance is, AB2=xA2+(200−x2B)2AB=(2xA)2+(200−x2B)2AB=5xB2−400xB+40000⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅(I) For the shortest distance, dxBd(AB)=00=25xB2−400xB+400001(10xB−400)⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅(II)xB=40mAgain differentiate equation (II). dxB2d2(AB)>0atx=40m The distance always greater than zero Substitute the value in equation (I). AB=5×402−400×40+40000AB=805km The time after which the distance between the ships is shortest is, t=10xB=1040=4hr