find the distance between the two ships.