Governments need to keep track of their spending just like we all do. If they spend more than they earn,…