I agree peacfulpete,I think it is impossible to unravel, to separate Legend and Myth from History, and to extract who may have ben a real figure in History.
Certainly the Hebrew Bible is a mish-mash of stories and myths that the Scribes of the 6th century B.C and later made in to a " History" for their own purposes. The main purpose being to have a "History" for Israel that gave them National Pride.
They followed in a tradition, started by those who wrote the Epic of Gilgamesh, ( which they plagiarise of course) and other similar works. But I have been surprised that the Myths and Legends of old more often than not have a foundation in real history, from that early stuff, through the Greek Myths and likely up to the persons of King Arthur, and later Robin hood, all those stories were more than likely based upon people who actually lived, embellished for entertainment value obviously, but some basis in fact.