Elihud was the father of Eleazar. Eleazar was the father of Matthan. Matthan was the father of Jacob.
Azor was the father of Zadok. Zadok was the father of Akim. Akim was the father of Elihud.
Jacob was the father of Joseph. Joseph was the husband of Mary. And Mary was the mother of Jesus, who is called the Messiah.