In these chapters the second census' were taken of men over the age of 20 or more for the Israelites army.
The Lord spoke to Moses about the division of land and the peoples inheritance. Moses was given instructions here.
In chapter 25 the people started to have sexual relationships with the woman of Moab and these woman invited them to do sacrifices for their gods and the people bowed down and worshiped their gods. God saw this and told Moses "Take all the leaders of the people and execute them in broad daylight before the Lord sot hat His burning anger may turn away from Israel" So Moses told Israel's judges, "Kill each of the men who aligned themselves with Baal of Peor"
Phinehas son of Eleazar son of Aaron the priest noticed a Midianite woman with a Israelite man who brought her to his relatives in the sight of Moses. Phiinehas got up and took a spear following them into a tent and drove the spear through both of them. Then the plague on the Israelites was stopped There were 24,000 who died from that plague.
The Lord spoke to moses and said that Phinehas has turned back My wrath from the Israelites he was zealous among them with My Zeal and therefore declare; I grant him my Covenant of peace It will be a covenant of perpetual priesthood for him and his descendants.
The Lord gives Moses instructions on the Inheritance law.
Here you can see that the Lord has compassion for woman who's family has no sons and they allowed to have the inheritance of their father's estate.
One can see when the second census is taken a whole generation has gone with the exception of Joshua and Caleb who was promised they will walk into the land of milk and honey.