Can someone please solve this question that has been baffling me...?

LIFO also depends on the item. If you’re selling crafting mats, it’s silly to undercut. If you’re selling a piece of gear or recipe, the buyer can choose which one they want, so it does pay to undercut.