"money to pay Balaam to curse Israel"
"They went to Balaam"
"told him the message from Balak"
This is the name of a man. See how you translated this in Numbers 22:2.