You tell your friend that the teacher is a terrible teacher.

Possible Answers:
Empathy
Sympathy

Empathy: "I understand how frustrating it must be to have a terrible teacher. It can really make learning difficult."

Sympathy: "I'm really sorry to hear that you have a terrible teacher. It must be really hard to stay motivated in that kind of environment."