Problem: Sentence1: The sun sets, and the workers go to their rest.
Sentence2: I need to get a good rest tonight; I was up late last night.
Q: Does the term rest mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: They traditionally trim the tree on Christmas Eve.
Sentence2: The airplane trimmed.
Q: Does the term trim mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: The judge leniently granted a sentence with no hard time. He is not living at home because he is doing time.
Sentence2: His sentence was 5 to 10 years.
Q: Does the term sentence mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: The car hit a tree.
Sentence2: The ball hit the fence.
Q: Does the term hit mean the same thing in both these sentences?

Answer:
the same meaning