2

In Matthew 1, there is a genealogy of Jesus from Abraham to Jesus, but in Luke 3:23-28, there is also a genealogy of Jesus from God to Adam to Jesus, but it's different to Matthews' version.

Why? And which one is correct?