Beginning inventory Merchandise $323,000 Finished goods $646,000 Cost of purchases 560,000 Cost of goods manufactured 820,000 Ending inventory Merchandise 223,000 Finished goods 217,000 Compute cost of goods sold for each of these two companies for the year ended December 31, 2017.