The position of three ships P,Q and R at sea are illustrated in the diagram….