what is the value of ending inventory for the first quarter if the company uses a perpetual lifo inventory valuation method?