The correct hierarchy would be
-<span>A solar system is a collection of planets, their moons, and other objects in orbit around a central star.
</span><span>-A galaxy refers to all existing matter, energy, and space that is held together by gravity</span>