How Did the Solar System Form?