Answer
The answer is below.
Work Step by Step
Country A should produce product X because it has an advantage in producing this product over the other country. After all, this is the idea behind trading: countries that are more able to make one product trade with those more able to make a different product.