When inventory items are acquired or produced at varying costs, the company will need to…