A compound MpXq has cubic close packing (ccp) arrangement of X. Its unit cell structure is shown below. The empirical formula of the compound is

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA
Face centre = × = 4
For M,
edge centre =
centre = 1
M2X4
i.e. MX2