I need you to correct this sentence

I nerely got an F- on my test. My teacher said she can't believe it after all the things she talt me.

I nearly got an F- on my test. My teacher said she can't believe it after all the things she taught me.