(380+20-40)÷(2+1)
=360÷3
=120吨
a仓原来有:120-20=100吨
b仓原来有:380-100=280吨