This is another translation exercise using learn/teach verbs:
Where did you learn to speak Spanish so well?
I studied Spanish three years in Madrid.
Где вы научились так хорошо говорить по-испански?
Я изучил испанский язык три года в Мадриде.
Is this right?
Z