Matthew 1 1:17

This is the list of ancestors of jesus Christ, Descendant of David and Abraham.

Abraham was the father of Isaac,

Isaac The father of Jacob,

Jacob The father of Judah and his brothers.

Judah and Tamar were the father and mother of Perez and Zerah.

Perez was the father of Heston,

Hezron The father of Ram,

Ram The father of Amminadab,

Amminadab The father of Nashon,

Nashon The father of Salmon.

Salmon and Rahab were the father and mother of Boaz.

Boaz and Ruth were the father and mother of Obed.

Obed was the father of Jesse,

Jesse  The father of King David.

David and Uriah’s wife Bathseba were the father and mother of Solomon.

Solomon was the father of Rehoboam,

Rehoboam The father of Abijah,

Abijah  The father of Asa,

Asa the father of Jehoshaphat,

Jehoshaphat The father of Joram,

Joram The father of Uzziah,

Uzziah The father of Jotham,

Jotham The father of Ahaz,

Ahaz The father of Hezekiah,

Hezekiah The father of Manasseh,

Manasseh The father of Amon,

Amon The father of Josiah.

Josiah was the father of Jechoniah and his brothers.

They lived at the time when the people were exiled to Babylon.

After the the exile to Babylon,

Jechoniah became the father of Shealtiel.

Shealtiel was the father of Zerubbabel,

Zerubbabel The father of AvoId,

Abiud The father of Eliakim,

Eliakim The father of Azor,

Azor The father of Zadok,

Zadok The father of Achim,

Achim The father of Eliud,

Eleazar The father of Matthan,

Matthan The father of Jacob.

Jacob was the father of Joseph, who was the husband of Mary.

Mary was the mother of Jesus, who is called Christ.

So there were

14 generations from Abraham to David,

14 generations from David until the exile to Babylon,

14 generations from the exile until the Messiah.