The teacher assigned the homework to the students that was too difficult.
The teacher assigned the students the homework, which was too difficult.
The teacher assigned the homework to the students that was too difficult.
The teacher assigned the students the homework, which was too difficult.