The most accurate response to how the economies of Saudi Arabia and Iraq would be affected if people in other countries stopped using as much oil as they do today is:
Their economies would suffer as other countries bought less of the oil that Saudi Arabia and Iraq produce.
Both Saudi Arabia and Iraq heavily depend on oil exports for their economic revenue, so a significant decrease in global oil demand would likely lead to reduced sales, lower revenues, and subsequently negative impacts on their economies.