How do you calculate cost of goods sold and Ending Inventory for goods using the LIFO inventory system?