FIFO, LIFO and weighted average
When identical units were bought at different costs, FIFO, LIFO and weighted average assign those costs to the units sold in different orders, giving different cost of goods sold and ending inventory from the same purchases.
From Financial Accounting.