Look at the sentence below.

Joey bought a sandwich at the deli, and then he decided to get a cookie.

Which type of sentence is represented?

compound
complex
simple
fragment