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?

The gas and dust in the early solar system gradually came together through a process called accretion, where small particles collided and stuck together, forming larger and larger bodies. Over time, these bodies grew into planetesimals, which continued to collide and accumulate material, eventually becoming the planets we see today.