2 Balak did it. Then Balaam and Balak sacrificed a bull and a ram on each of the altars.