Company A transfers inventory to an affiliate, Company B, for $5,000 with a 25% markup on cost. Company B resells $3,500 of this inventory to nonaffiliates during the same accounting period. What is the cost of goods sold on the intercompany sale