vale corp had the following purchases and sales over the year. date unitsunit costtotal cost jan 1beg. inventory600$8$4,800 apr 8sale550 jun 5purchase300$9$2,700 aug 12purchase700$6$4,200 nov 20sale1000 dec 30purchase450$11$4,950 calculate ending inventory (in dollars) as of december 31 under fifo and perpetual inventory method.