The correct answer is B. debris from previous stars that have exploded.
The planets in Earth's solar system, like other celestial bodies, are primarily composed of materials that originated from the remnants of ancient stars. These stars went through processes such as nuclear fusion and, upon their death, exploded in supernovae, dispersing elements throughout the universe. These elements ultimately contributed to the formation of planets, asteroids, and other bodies in the solar system.