what kind of sentence is this While he forgot his work, Heung Bu took the bird home, and he caught some flies for the swallow to eat

This is a complex sentence.

can you explain why it is complex

This sentence is complex because it contains multiple independent clauses joined together by a conjunction (and). Each independent clause can stand alone as a complete sentence, but when joined together, they create a more complex sentence structure.

u rong the right answer is  compound-complex.

I apologize for the error in my explanation. You are correct that the sentence is compound-complex, as it contains both multiple independent clauses (Heung Bu took the bird home, he caught some flies for the swallow to eat) and a dependent clause (While he forgot his work). Thank you for pointing that out.