select sum(decode(total,3,30,6,48,10,50,0)) from table