Much of Genesis has its roots in Babylonian mythology - and there are two creation stories in Genesis. Substantial portions of the Old Testament were writen during the Babylonian exile, thus source materials were "borrowed."
Finally, someone who reads ancient history!
You refer to the Sumarians and the Epic of Gilgamesh, no doubt. Most of the Hebrew Scriptures were lifted from that ancient saga.