Question: Here is one sentence: Do you know the way to the airport?
Here is another sentence: He said he was looking for the way out.
Does the way mean the same thing in the two sentences?

Answer: the same meaning

Question: Here is one sentence: It is beyond the horizon of present knowledge.
Here is another sentence: Some students take a gap year after finishing high school to broaden their horizons.
Does the horizon mean the same thing in the two sentences?

Answer: the same meaning

Question: Here is one sentence: The trapped miners found a pocket of air.
Here is another sentence: They dipped into the taxpayers' pockets.
Does the pocket mean the same thing in the two sentences?

Answer: different meanings

Question: Here is one sentence: Head the fish.
Here is another sentence: This student heads the class.
Does the head mean the same thing in the two sentences?

Answer:
different meanings