Assume ABC uses the average cost method of inventory valuation. What unit cost would be used to determine the amount in ending inventory or cost of goods sold?