This cloud , the solar nebula , was composed of hydrogen and helium produced in the Big Bang , as well as heavier elements produced in supernovas . It was composed of hydrogen and helium created shortly after the Big Bang 13.7 Ga and heavier elements ejected by supernovas .