From the figure, we see that the current in the circuit would be equal to I(R2+r)=E
As no current flows through the capacitance in a DC connection
Thus, we get I=(R2+r)E
Thus, the potential across the resistance R2 is equal to V=IR2=(R2+r)ER2and thus the charge on the capacitor
would be equal to Q=CV=(R2+r)ER2V