How did the planets form?

Question 12 options:

Gravity pulled small bits of rock and dust together to form a larger mass


The planets were instantly created during the big bang


Large stars had gravity and brought matter together


None of these answers are correct