The answer is B. First in, first out method
Or commonly known in accounting as the FIFO method, is inventory valuation method where the first goods purchased by company is also the first goods sold.
By doing that, this will make the last goods purchased ( the most recent purchased) by the company became company ending inventory.