Respuesta :

The correct answer is B, because a 'compound-complex clause' consists of two independent clauses (in this case, 1. 'the dog wagged its tail' + AND + 2. '(the dog) barked') and one dependent/subordinate clause ('when I opened the door').