Sort:  

I think the answer should be 56

yellow=4 from the second last line, then green=8 (2nd line), blue=12 (1st list), w=16
-> ?= 16-8+4*12 = 56
alternatively yellow=-4 -> ?=40

16-8 + 4x 12 =56