Jesus himself, when he began to teach, was about thirty years old, being the son (as was supposed) of Joseph, the son of Heli,
Most think that Luke’s genealogy list is via Mary, his real fleshly descent of David, and that Matthew gives his legal genealogy through Joseph back to David.