Q: Sentence (1) Your mother is a right pain.
Sentence (2) As the intensity increased the sensation changed from tickle to pain.. Word: pain.
==--==
A: different meanings

Q: Sentence (1) I felt the same way.
Sentence (2) That's the way it is.. Word: way.
==--==
A: the same meaning

Q: Sentence (1) A wall of prejudice.
Sentence (2) A wall of water.. Word: wall.
==--==
A:
the same meaning