Cost is a weighted average: goods in move it, goods out leave at it. The value here is the same figure as the stock account in the ledger.