The correct response regarding the formation of the planets in the solar system is: The remaining materials from the sun's formation clumped together due to gravity.
This describes how, after the sun formed from a rotating disc of gas and dust (the solar nebula), the remaining materials in that disc began to coalesce due to gravitational forces, eventually forming the planets, moons, asteroids, and other bodies in the solar system.