Joseph Fielding Smith teaches that Adam helped form this earth with Jesus.
Joseph Fielding Smith, Doctrines of Salvation, 3 vols., ed. Bruce R. McConkie (Salt Lake City: Bookcraft, 1954), 1:74
It is true that Adam helped to form this earth. He labored with our Savior Jesus Christ. I have a strong view or conviction that there were others also who assisted them. Perhaps Noah and Enoch; and why not Joseph Smith, and those who were appointed to be rulers before the earth was formed? We know that Jesus our Savior was a Spirit when this great work was done. He did all of these mighty works before he tabernacled in the flesh.