The solar system consist of the sun, the planets, stars and other objects. The chemical composition of the Sun consist mainly of Hydrogen and helium.
The sun is the largest object in the Solar system, it comprises nearly all the matter in the Solar System, Also the largest planet after the Sun are Jupiter and Saturn are giant planets forming almost the remaining matter of the solar system.
Like the Sun, the mass of Jupiter and Saturn are composed of roughly 98% hydrogen and helium with 2% of all the other elements combined.