A synonym is two different words that have the same meaning: (ask, inquire)
A Homonym is two words that are spelled the same way, but have different meanings: (Pole (as in something having two ends) or pole (there's a pole in the ground))
Hope this helped! If you have any more questions, let me know :)