18. I wasn't learning (not/ to learn) a poem while you were writing (to write) an exercise.
Ответ: wasn't learning, were writing