The inventory values are $20, $90 and $50.
Under the principle of lower of cost or net realizable value, the value of inventory is kept at cost and gain is not recognized until the inventory actually sells. The cost of the products is $20, $90 and $50, which is the inventory value to use.