the company uses a periodic inventory system. for specific identification, ending inventory consists of 370 units from the january 30 purchase, 5 units from the january 20 purchase, and 15 units from beginning inventory. determine the cost assigned to ending inventory and to cost of goods sold using (a) specific identification, (b) weighted average, (c) fifo, and (d) lifo.