What is the structure of the sentence?

While the pasta cooked, the boys played together, and their grandmother relaxed.

A.simple

B.complex

C.compound-complex

D.compound