Begin inventory 39 units@49
Sale 28 units@69
First purchase 26 units@52
Sale 15 units@70
Second purchase 21units@55
Sale 30units@72

How to cal the cost and ending inventory for LIFO and FIFO