Q: Sentence (1) Stay after school.
Sentence (2) He didn't miss a single day of school.. Word: school.
==--==
A: the same meaning

Q: Sentence (1) The French doors give onto a terrace.
Sentence (2) The wall gave in.. Word: give.
==--==
A: different meanings

Q: Sentence (1) He wrote on the flap of the envelope.
Sentence (2) The flap of a wing.. Word: flap.
==--==
A:
the same meaning