I think I had a lesson with you three lessons ago.
I think you taught me three classes ago.
この場合、次のような言い方ができますよ。
ーI think I had a lesson with you three lessons ago.
「3回前のレッスンであなたのレッスンを受けたと思います」
ーI think you taught me three classes ago.
「3回前のクラスであなたに教えてもらったと思います」
ご参考まで!