When the solar system was very young, the sun was just being formed and planets had not yet been made. The solar system was mostly gas and dust.

Which statement best explains how planets formed in the early solar system?

Planets formed from magnetism in space that interacted with light from the stars.

Planets formed from large asteroids that had broken apart.

Planets formed from molten metal in volcanic eruptions.

Planets formed from small amounts of debris that were attracted together because of gravity.

The statement "Planets formed from small amounts of debris that were attracted together because of gravity" best explains how planets formed in the early solar system.