Answer:
See below
Step-by-step explanation:
After the red giant phase, the Sun will lose its outer layers leaving behind its helium-rich core (called white dwarf), which will gradually cool over the lifetime of the Universe. In stars more massive than the Sun, after the red giant phase. it becomes essentially a free-for-all for creating heavier and heavier atoms. As soon as the helium in the core runs out, the star collapses again, heats up, and starts fusing carbon and oxygen into larger atoms. If the star is massive enough, this keeps happening until iron is fused. At which point a hotter core still won't lead to fusion. The star collapses, becomes unstable, and POW. Explodes, forming a supernovae and neutron star (or black hole).