When I walked into the room Peter was in deep thought.
Which type of sentence is this?
When I walked into the room, Peter was in deep thought.
This is a complex sentence.
This is a complex sentence.