We know that one way carbon ends up in the interstellar medium which by the way is one or the heavy elements that help form the planet.
But we also know that in the core, carbons fuse with another carbon to produce oxygen which means carbon is no longer there.
Then how does carbon end up in the interstellar medium ?