What is the structure of the sentence?

The dog wagged its tail and barked when I opened the door.









A.
simple







B.
complex







C.
compound







D.
compound-complex