In international trade, companies can have absolute and comparative advantage in producing goods and services over other countries.
A country has absolute advantage in producing goods if it is able to produce goods at a lower cost in terms of resources compared to other countries.
On the other hand, the country that can produce a product at the lowest opportunity cost, compared to producing other products, has a comparative advantage in that specific product.
As long as different countries have different opportunity costs of producing different goods, there are gains to be made in international trade.
The following two videos from Khan Academy explain the concept of comparative advantage and absolute advantage with the help of examples.
The first video explains how two parties can get better outcomes by specializing in their comparative advantage and trading.
The second video explains that a party benefits from trade as long as there is a comparative advantage and not necessarily an absolute advantage.