The first case can be considered as the capacitors in parallel
Equivalent capacitance is equal to
CA=k1C1+k2C2
=2(Aε02d)+3(Aε02d)
=52×0.5μF
The second case can be considered as the capacitors in series
Equivalent capacitance is equal to
1C=1k1C1+1k2C2
=d2×2Aε0+d3×2Aε0
CB=125×0.5μF
CACB=2524