Balak by procuring them and Balaam by offering them; through in ancient times kings were priests also, and so might perform a priestly work, as this was.
Related Commentaries of Numbers 23:2
Numbers 23:2
2 And Balak did as Balaam had spoken; and Balak and Balaam offered on every altar a bullock and a ram.