The initial capacitance is C=dϵ0A.
From the figure, the capacitor is divided into three parts.
The bottom half is divided into two capacitors C2 and C3 in parallel, each with area A/2 and thickness d/2.
C2=d/2K2ϵ0(A/2)=K2dϵ0A=3C
C3=d/2K3ϵ0(A/2)=K3dϵ0A=5C
The equivalent capacitance of the bottom part is Ceq,bottom=C2+C3=3C+5C=8C.
The top half is a single capacitor C1 with area A and thickness d/2.
C1=d/2K1ϵ0A=2K1dϵ0A=2(2)C=4C.
The total capacitance C′ is the series combination of C1 and Ceq,bottom.
C′1=C11+Ceq,bottom1=4C1+8C1=8C2+1=8C3
C′=38C
Comparing with C′=3nC, we get n=8.