Hey Buddy !
here is your answer
Teacher ordered the student to give her/him your book.
Step-by-step explanation:
When there is any statement in which you find that there is an order, request, demand etc.Any word we use requested, ordered,demanded etc. And to-infinitive with that word.