Typical stellar evolution proceeds through several stages:
1. Red Giant Branch: Stars expand and cool as hydrogen fuses to helium in a shell around the core.
2. Horizontal Giant Branch: A helium flash occurs, followed by helium fusing to carbon in the core while hydrogen fuses in a shell.
3. Asymptotic Giant Branch: Helium and hydrogen shells alternately fuse heavier elements, causing the star to further expand and cool before ejecting its outer layers as a planetary nebula.