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?