This is the Popular question in analog electronics.
Lets see how this works
C1 is initially charged with 2volts and C5 is charged with 1 volts.
And there is a Resistor of 10k between the two capacitors.
Since C1 is at higher potential than C5 , current flows through 10k and voltage of C1 tends to drop and that of C5 will increase . The current will stop flowing after both capacitor reach common voltage.
That common voltage can be found using the equation
V=Q/C
V=(C1v1+c5V2)/ (c1+c5) {Refer figure}
Substituting the values
V=(1u*2++0.5u*1)/ (1u+0.5u)
V=2.5u/1.5u
V=1.66v. which is the voltage across each capacitors