Respuesta :
The answer to your question would be that the writer should insert commas around "which the teacher assigned" because it is a nonrestrictive element. That is, the revised version of the sentence would be as follows: The entire first period class agreed that yesterday's algebra homework, which the teacher assigned, was a really fun challenge.
The clause should be separated from the rest of the sentence because the information it provides is considered nonessential to the meaning of the sentence. If it was removed, the meaning of the sentence would not be altered (A).
(A) The entire first period class agreed that yesterday's algebra homework was a really fun challenge.