The correct option is A X2Y4Z
Given that X forms an fcc lattice. Thus, the number of X atoms =4 (number of atoms per unit cell).
Now, since Y occupies all the tetrahedral voids, thus, the number of atoms of Y=4×2=8 (number of tetrahedral voids = twice the number of octahedral voids).
Finally, we have Z atoms occupying half of the number of octahedral voids. Hence, Z=12×4=2
Thus, the formula of the solid is X4Y8Z2 or X2Y4Z.