In one or two sentenes, explain the difference between a homophonic pun and a homographic pun

A homophonic pun relies on words that sound similar or are pronounced the same but have different meanings, such as "I used to be a baker, but I couldn't make enough dough." On the other hand, a homographic pun uses words that are spelled the same but have different meanings, such as "I'm reading a book on anti-gravity. It's impossible to put down."