先生がおっしゃった通りです。
It's exactly as the teacher said.
✦ AI pragmatic read · suggests Sonkeigo
Uses the honorific verb おっしゃる and polite です, showing deference to the teacher; appropriate when a student or subordinate acknowledges the teacher's statement.
A starting point, not the final word — open the entry to add your own note if you'd explain it differently.