The capital account tracks all financial transactions between a country and the rest of the world, encompassing investments, loans, and…