Basic question on trade based on comparative advantage
You did not factor in the 4 Darwinian goals of global trade:


Find foreign markets to absorb excess production, that is, where excess production can be dumped.
Extract foreign resources at low prices.
Deny geopolitical rivals access to these resources.
Open foreign markets to domestic capital and credit so domestic capital can buy up all the productive assets and resources.