Complex sentence: He comes back to the present and writes the report, which the teacher exclaimed the best in the class.
Split into simpler sentences: He comes back to the present to write the report. It ends up being outstanding, and the teacher exclaims it the best in the class.