soo we just have to find capacitance .... a simple logic is used here which is potrayed below...
C = eA/d ........ now if i introduce a med. of rel. permittivity k ...... C = ekA/(d) = eA/(d/k) ..
or it is equivalent to a distance of d/k in vaccume !!!!!!!!!!!!!!! therefore we have ur net distance in vacc . to be d1/e1 + d2/e2 ,,,,,,,,,,,,
C = eA/(d1/e1+d2/e2) ...................now the chare on the cap = CV .........
SO CHARGE = eAV/(d1/e1+d2/e2)