The lower of cost or market (LCM) rule says that inventory must be written down to market if market is lower than inventory's cost. We can incorporate this requirement by modifying our previous calculations.
This is called the "conventional retail method" and the logic for using this approximation is that a markdown is evidence of a reduction in the utility of inventory.