Parshat Ki Tisa
The Torah in 34: 18-26 goes from warning about throwing the nations out of the Land of Israel to other topics, such as the holiday of Pesach, then redeeming the firstborn calf and sheep, korban pesach, bikkurim,not working on shabbos, the holidays of shavuos and sukkos, not eating meat and milk together, etc..
What is the connection between all these things? Did it just select random laws to mention here? How does it lead from one to the other?
If you have an answer, leave it in the comments