How the Universe Made the Elements in the Periodic Table