What is the primary fate of the elements produced by a solar-mass star near the end of its life?

Answer

It puffs its outer layers away to form a planetary nebula, enriching the interstellar medium

A star similar in mass to the Sun ends by gently dispersing its outer layers, which contain elements like carbon and oxygen, into the surrounding space.

What is the primary fate of the elements produced by a solar-mass star near the end of its life?
starsastrophysicsElementsnucleosynthesis