A solid is made of two elements P&Q. Atoms P are in ccp arrangement and atoms Q occupy all the octahedral voids and half of the tetrahedral voids, then the simplest formula of the compound is
PQ2
So, formula of solid is P4Q8 so, the simplest formula of the solid is PQ2