Compare the FIFO method with the weighted average method to understand their respective advantages.