How does a business determine how to eliminate gains on unrealized intercompany transactions.

How does a business determine how to eliminate gains on unrealized intercompany

transactions.