Cost of goods sold is obtained from _________.

A. the work in process inventory records.
B. the Raw Materials Inventory control account.
C. analysis of all the control accounts in the cost system.
D. the finished goods inventory records.