The capacitor C3 charges to 8µC as the switch S1 is closed.
Ref. image 1
But when switch S1 is opened and S2 is closed, then capacitor C3 is charged to 5µC, thus the net charge 8µC - 5µC = 3µC resides on C1 and C2, as they are connected in series.
Ref. image 2
So, Apply the Kirchhoff loop,
q1/C1 + q2/C1εr = q3/C3
q/C(1 + 1/εr) = 5
3(1 + 1/εr) = 5
εr = 1.5