Now applying Kirchhoff`s voltage law
or `(-(20+q))/1-(30+q)/2+30=0`
or `-40-2q-30-q=-60`
or `3q=-10`
Charge flow is `-10//3 muC`
Charge on capacitor of capacitance `1 muF` is `20+q=(50)/3muC`
Charge on capacitor of capacitance `2 muF` is `30+q=(80)/3muC`.