Revelation 17:9
17:9 (This requires a mind that has wisdom.) The seven heads are seven mountains the woman sits on. They are also seven kings:
Revelation 17:17
17:17 For God has put into their minds to carry out his purpose by making a decision to give their royal power to the beast until the words of God are fulfilled.