In given circuit capacitors C1 and C2 are connected in series , so equivalent capacitance will be
Ceq1=C11+C21⇒Ceq=C1+C2C1C2
at t=0, the switch is closed and capacitors start charged, at time t
charge on the capacitor is given by
q=q0[1−e−t/τ]
where q0 is the maximum charge on the capacitor at steady state and τ is the time constant.
and q0=CeqE and τ=RCeq
Then from the above equation
q=CeqE[1−e−t/RCeq]
∴q=CeqE[1−exp(RCeqt)]
Both capacitor will have same charge as they are connected in series

