Absolute advantage means producing with fewer inputs; comparative advantage means giving up less of another good. Specialization can therefore benefit a producer that is less productive in both goods.
Hypothetical constant labor requirements with 12 labor hours available in each country. Opportunity cost uses ratios of hours per unit. A’s greater productivity in both goods does not eliminate B’s comparative advantage.