The only land he did not buy was the land that belonged to the priests. They did not have to sell their lands, because the king gave them an allowance to live on.
He gave Joseph the Egyptian name Zaphenath Paneah, and he gave him a wife, Asenath, the daughter of Potiphera, a priest in the city of Heliopolis. Joseph was thirty years old when he began to serve the king of Egypt. He left the king's court and traveled all over the land.
So Joseph made it a law for the land of Egypt that one-fifth of the harvest should belong to the king. This law still remains in force today. Only the lands of the priests did not become the king's property.
I also learned that the Temple musicians and other Levites had left Jerusalem and gone back to their farms, because the people had not been giving them enough to live on.
Surely you know that the men who work in the Temple get their food from the Temple and that those who offer the sacrifices on the altar get a share of the sacrifices.