The law of comparative advantage states that a country should specialize in the production of…