Each of the 8 corner atoms of a cube is shared by 8 such cubes so that each corner atom contribution to one cube will be 18.
After the removal of 1 corner X atoms,
No. of X atom per unit cell =7×18=78
Each atom at the face centre is shared by two unit cell so that each face centred atom contributes half of it to each cube.
No. of Y atom per unit cell =6×12=3
So, the number of atoms present or the formula of the compound is
X78Y3 or X7Y24