The most accurate 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 the process known as accretion, where dust and gas in the protoplanetary disk surrounding the young sun came together under the influence of gravity to form the planets.