Which of the following best describes the role of gravity in the formation of planets, stars, and solar systems?

Gravity causes the expansion of the universe.

Gravity prevents the formation of stars and planets

Gravity brings together matter, leading to the formation of stars, planets, and solar systems.

Gravity
is not involved in the formation of stars and planets.

Gravity brings together matter, leading to the formation of stars, planets, and solar systems.