Under FIFO, cost of goods sold is the value of the first units purchased. The 35 units sold consist of the 20 units in beginning inventory, the 10 units purchased in April, and 5 of the units purchased in July. COGS = $200,000 + $120,000 + (5 × $12,500) = $382,500.