How the Earth and moon formed, explained