We defined the origin as point o (0,0). Then we can compute the distance between two points on each ship.
Let us start with the solution.
for p, d²=(0+2)²+(0-5)², d=5.39 unit
for q, d²=(0+7)²+(0+5)², d=8.6 unit
for r, d²=(0-2)²+(0+3)², d=3.61 unit
Therefore, the farthest ships are p and q.