The correct response is: The remaining materials from the sun's formation clumped together due to gravity.
This describes the process of planetary formation, which is part of the nebular hypothesis. After the sun formed, leftover gas and dust in the solar nebula came together through gravitational attraction to form the planets.