The correct answer is:
B. debris from previous stars that have exploded
Planets in Earth's solar system are primarily formed from the remnants of earlier stars, including gas and dust that were produced from supernovae and other stellar processes. This material accumulated over time to form the planets.