You add tariffs to country B's products to make up the difference.
This is happening right now if you haven't already noticed.
This not withstanding the obfuscation of country of origin that can happen If country B and C really wanted to work together.
We'll have to agree to disagree on that.