Which was the son of Cainan, which was the son of Arphaxad, which was the son of Sem, which was the son of Noe, which was the son of Lamech,

This verse is describing a genealogy: "Which was the son of Cainan...down to Lamech." It lists the descendants in a direct line from Lamech to Noe.

King James Version

Simple English

* Work in progress - there may be occasional inaccuracies