The teacher returned the homework. The teacher noticed the error

The teacher returned the homework. The teacher noticed the error.(complex sentence)
【正确答案】:The teacher returned the homework when/after she/he noticed the error.The teacher, who noticed the error, returned the homework.