The teacher said to the students, "Open your books."
Correct: B
For commands, the reporting verb changes to 'ordered' or 'told'. The imperative sentence is changed into an infinitive phrase using 'to' + verb. The possessive pronoun 'your' changes to 'their' to refer to the students.