Balaam told Balak, “Build me seven altars here and prepare seven bulls and seven rams for me.”
While the Levites were carrying the ark of the covenant of the Lord, with God’s help, they sacrificed seven bulls and seven rams.
So Balak took Balaam to the top of Peor, which overlooks the wasteland.
So Balak did as Balaam said and offered a bull and a ram on each altar.