40 POINTS!! Help Asap please.... EARTH & SPACE SCIENCE

How do dying stars contribute to the formation of planets?

A. They emit helium gas that attaches to nearby planets.

B. They remove low-mass elements from the planets’ crust.

C. They cause nuclear fusion inside the inner core of planets.

D. They produce heavy elements such as iron and gold.