Nga had taught/learnt(learned) Math in Qui Nhon University for 4 years but now she teaches in her home village.
Vì câu có "for 4 years" nên sẽ phải để câu trong thì hiện tại tiếp diễn. Just a note, I technically don't know the true answer to the question so I'm just speculating the verbs. But in my opinion, you should go with "has learnt/learned".