Answer:
For low-mass stars, after the helium has fused into carbon, the core collapses again. As the core collapses, the outer layers of the star are expelled. A planetary nebula is formed by the outer layers. The core remains as a white dwarf and eventually cools to become a black dwarf.