Put the following events in the order they occurred to lead to the formation of the solar system:

___. Earth was bombarded by new materials after formation.
___. Earth separated into layers based on the weight of materials.
___. Hydrogen and helium formed atoms.
___. Outgassing of volcanoes produced a primitive ocean.