Step 1: Understand fcc lattice of anions.
In an fcc lattice, the number of atoms per unit cell is 4. Here, anions (B) form the fcc lattice, so total B atoms per unit cell = 4.
Step 2: Determine tetrahedral voids in fcc.
An fcc unit cell contains 8 tetrahedral voids. If all tetrahedral voids are occupied by cations (A), then number of A atoms = 8.
Step 3: Write atomic ratio.
Thus:
\[
A : B = 8 : 4
\]
Step 4: Simplify ratio.
Dividing both by 4:
\[
A : B = 2 : 1
\]
Step 5: Interpret structure.
This corresponds to anti-fluorite type structure where cations fully occupy tetrahedral voids in an fcc anion lattice.
Step 6: Final conclusion.
Hence the ratio of x and y is 2:1.
Final Answer:
\[
\boxed{2:1}
\]