Abraham gave Melchizedek a tenth of everything he had captured. In the first place, Melchizedek's name means king of righteousness. He is also called king of Salem (which means king of peace).
No one knows anything about Melchizedek's father, mother, or ancestors. No one knows when he was born or when he died. Like the Son of God, Melchizedek continues to be a priest forever.
Moses' Teachings say that members of the tribe of Levi who become priests must receive a tenth of everything from the people. The priests collect it from their own people, Abraham's descendants.
Although Melchizedek was not from the tribe of Levi, he received a tenth of everything from Abraham. Then Melchizedek blessed Abraham, who had God's promises.
We could even say that when Abraham gave Melchizedek a tenth of everything, Levi was giving a tenth of everything. Levi gave, although later his descendants would receive a tenth of everything.
The people established the Levitical priesthood based on instructions they received. If the work of the Levitical priests had been perfect, we wouldn't need to speak about another kind of priest. However, we speak about another kind of priest, a priest like Melchizedek, not a Levitical priest like Aaron.
Moses' Teachings couldn't accomplish everything that God required. But we have something else that gives us greater confidence and allows us to approach God.
but Jesus became a priest when God took an oath. God said about him, "The Lord has taken an oath and will not change his mind. You are a priest forever."
We need a priest who doesn't have to bring daily sacrifices as those chief priests did. First they brought sacrifices for their own sins, and then they brought sacrifices for the sins of the people. Jesus brought the sacrifice for the sins of the people once and for all when he sacrificed himself.
Moses' Teachings designated mortals as chief priests even though they had weaknesses. But God's promise, which came after Moses' Teachings, designated the Son who forever accomplished everything that God required.