The first one is better in my opinion
Answer: Adjective.
Explanation:
"Complex" is used here to describe the group of apartments. So, it qualifies for describing a noun, like the definition of adjective. Let me know if you got it right.
<span>. c.Scientists studied the trapping of gases in the atmosphere.</span>