Here is the story of Shem’s family line. It was two years after the flood. When Shem was 100 years old, he became the father of Arphaxad.
After Arphaxad was born, Shem lived 500 years and had other sons and daughters.
Here is the story of Terah’s family line. Terah became the father of Abram, Nahor and Haran. And Haran became the father of Lot.