Complex sentence: The female builds the nest and does most of the caring for the two to three young, which become independent within 40 days of egg-laying.
Split into simpler sentences: The female builds the nest and does most of the caring for the two to three young. The young are independent within 40 days of egg-laying.