hi rahul i will explain it to u...
since x atoms are at corners therefore they are shared by 8 unit cells.
and y are at face centres therefore they are shared by 2 unit cells.
therefore x contribute 1/8 of cell and y cotribute 1/2 of unit cell.
there are eight corners therefore no of atom of x is 1/8*8=1 and there are 6 faces ,no of atom of y is 1/2*6=3
therefore formula is XY3.
rate me plz if u r satisfied.