Problem: Sentence1: Would you like some tea?
Sentence2: Would you be a dear and get me a cup of tea, please?
Q: Does the term tea mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: The unlawful restraint of trade.
Sentence2: Restraints imposed on imports.
Q: Does the term restraint mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: He stood on the right.
Sentence2: The pharmacy is just on the right past the bookshop.
Q: Does the term right mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: He encountered a general feeling of resistance from many citizens.
Sentence2: These trees are widely planted because of their resistance to salt and smog.
Q: Does the term resistance mean the same thing in both these sentences?

Answer:
different meanings