A homonym is a word that is said or spelled the same way as another word but has a different meaning. "Write” and “right” is a good example of a pair of homonyms.
HOMONYMS are words that sound alike but have different meanings. Homophones are a type of homonym that also sound alike and have different meanings, but have different spellings. HOMOGRAPHS are words that are spelled the same but have different meanings.
You do sound like a teacher and I get that. I was a teacher too...not English though. I can't remember how to do the "quote" thing and I will go back and look...the above were copied & pasted from the many answers that appeared when I Googled homonyms/homophones/homographs....I thought I was fairly safe saying homonyms...but apparently not. No offence taken