Arrange the following words into…

Arrange the following words into a correct sentence.

The tablecameonthe studentwhenwasthe teachersitting
12345678