Answer:
Calculation of Cost of Goods sold under LIFO:
For 3,000 units (3000*40) $120,000
For 400 units (400*25) $10,000
Add: Excess of replacement cost over historical $8,000
cost of LIFO liquidation (400*(45-25))
Cost of Goods sold under LIFO $138,000
Journal entry
Date Account Titles and Explanation Debit Credit
Cost of Goods sold $138,000
Inventory (120000+10000) $130,000
Excess of replacement cost over $8,000
historical cost of LIFO liquidation