In general, use the possessive before -ing form of the verb. I'm not sure what the grammar books say, but sentence B doesn't sound the least bit natural to me. I forgot that you taught me .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.