Arrange the following words into…

Arrange the following words into a correct sentence.

The table came on the student when was the teacher sitting
1 2 3 4 5 6 7 8