Problem: Sentence1: Replace the book on the shelf after you have finished reading it.
Sentence2: The insurance will replace the lost income.
Q: Does the term replace mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: Negotiations ran into a brick wall.
Sentence2: A wall of smoke.
Q: Does the term wall mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: He sacrificed a piece to get a strategic advantage.
Sentence2: He needed a piece of granite.
Q: Does the term piece mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: He managed to multiply his profits.
Sentence2: He had been multiplying, but it occurred to him he needed to resolve the exponents, first.
Q: Does the term multiply mean the same thing in both these sentences?

Answer:
the same meaning