The following lots of Commodity Z were available for sale during the year. Line Item Description Units and Cost Beginning inventory 9 units at $48 First purchase 19 units at $54 Second purchase 27 units at $26 Third purchase 17 units at $62 The firm uses the periodic inventory system, and there are 21 units of the commodity on hand at the end of the year. What is the ending inventory balance of Commodity Z using the weighted average cost method