Question: Sentence 1: I will work hard to improve my grades.
Sentence 2: John worked with Paul on the task.
Does work mean the same thing in these two sentences?
============
Answer: the same meaning

Question: Sentence 1: Pay up, please!
Sentence 2: It pays to go through the trouble.
Does pay mean the same thing in these two sentences?
============
Answer: different meanings

Question: Sentence 1: Allow for mistakes.
Sentence 2: The evidence allows only one conclusion.
Does allow mean the same thing in these two sentences?
============
Answer:
the same meaning