Water on Earth and moon may have common origin