What type of sentence is this?

Andrew needs to study for a make-up test, but Carlos already passed his test.

Simple

Compound

Complex

Compound-complex