A star forms from a vast cloud of hydrogen, a bit of helium, and a dash of other chemical elements. A star is basically made of hydrogen just like the…