Concept:Cost of goods sold is the cost of the stock actually sold during the period: the goods available for sale (opening stock + purchases) less what is left unsold (closing stock).Formula used:Cost of goods sold=Opening stock+Purchases−Closing stockSolution:Goods available for sale =4000+17000=21000Cost of goods sold =21000−12000=9000So the cost of goods sold is ₦9,000.Key point: ₦21,000 is only the goods available for sale; the closing stock must still be subtracted.Answer:Option B (₦9,000)