YOU SAID:
You taught a lesson to me that I had to learn
INTO JAPANESE
あなたは私に学ばなければならなかったレッスンを教えてくれました
BACK INTO ENGLISH
You told me the lesson I had to learn
INTO JAPANESE
あなたは私が学ばなければならなかったレッスンを教えてくれました
BACK INTO ENGLISH
You taught me the lessons I had to learn
INTO JAPANESE
あなたは私が学ばなければならなかったレッスンを教えてくれました
BACK INTO ENGLISH
You taught me the lessons I had to learn
That didn't even make that much sense in English.