Did Genesis borrow from Pagan Legends?

Some critics claim Genesis 2-3 was written by borrowing from pagan legends found throughout Mesopotamia. But how much evidence supports an alleged connection?

Philosophy