Both are good grammar. The second makes it clear that you are still teaching. ago' is a poor substitute for 'for': I`ve been teaching math for 10 years .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.