Answer:
One sailor was on the east side looking west; the other was on the west side looking east — so they were facing each other across the deck.
Explanation:
“Opposite sides” means port and starboard. If the sailor on the east side looks west and the one on the west side looks east, their lines of sight meet in the middle, so they see each other.