On the Origin of the Solar System