Genesis 1:26 – Who was with God? Genesis 1:27 – Was this Adam and Eve? Genesis 2:20-22 – Are these two writings of the creation story?
When the Hebrew people sat down to write the Torah (Pentatuech), a miracle occurred: a peaceful Church Council meeting. The most incredible thing was the final product, a seamless mesh of at least four disparate (different) traditions. There are two distinct creation stories in Genesis: one by the Elohists (Genesis 1-2:3) and one by the Yahwists (Genesis 2:4ff). Each has its own theological point to make.
The Elohists (you can tell by how they name God) refer to “God” in Hebrew as Elohim, literally “council of the gods” in pre-Hebrew. Their theological point was that God made an orderly universe—and it was good.
The Yahwists (Jahwists auf Deutsch) refer to God as Yahweh in Hebrew and “LORD God” in English. Their theological point has a more relational God. This God believes in free will as well as sin and its consequences.
As to your specific questions:
**Genesis 1:26 – Who was with God? Who was the man? In Genesis 1 Elohim is plural. Genesis 1 and 2 are separate stories. If you want to say the man was Adam, go ahead. Realize it is not necessarily so.
**Genesis 1:27 – Was this Adam and Eve? Could be. See above.
**Genesis 2:20-22 – Are these two writings of the creation story? Yes.