Tracing the origins of the Moon