The terrestrial planets are made almost entirely of elements heavier than hydrogen and helium. According to modern science, where did these elements come from?.