Here some homework for you,
There four primary lists of Christ’s line of descent, three of them beginning with Adam, and they appear in the Bible as follows: (1) Genesis and Ruth; (2) 1 Chronicles, chapters 1-3; (3) Matthew, chapter 1; and (4) Luke, chapter 3 (Luke actually runs back from Jesus to Adam). With one exception, they agree exactly from Adam to Solomon, the son of David. Then, parallel to Solomon, Luke lists Nathan, another son of David. To this point Luke traces the genealogy of Jesus from Heli, the father of Mary, the wife of Joseph, thereby proving Jesus’ natural right to the Messiahship as a son of David, for Jesus had no earthly father, being the foster son of Joseph, but the actual Son of God by a miracle.—Luke 1:34, 35 ( In identifying the Messiah)
But Like said the Bible was written for people that long to have true faith John 17 :3 says is all.
Then you have to pray for God, holy spirit to understand, also you have to have the right heart condition.