This is the genealogy of Shem: Shem was one hundred years old, and begot Arphaxad two years after the flood.
This is the genealogy of Terah: Terah begot Abram, Nahor, and Haran. Haran begot Lot.
After he begot Arphaxad, Shem lived five hundred years, and begot sons and daughters.