Given A atom occupy all corners and alternate edge centre. Therefore
in one unit cell total number of corner =8
And number of adjacent edge centres=4
We know contribution of corners to unit cell is 1/8 th and that by edge centre is 1/4.
Therefore,
A atoms in a unit cell=( 1/8)*8 + 4*(1/4)= 2
Similarly for B atoms in face centre
Contribution of a face centre to unit cell is 1/2
Total face=6
Total atoms of B in a unit cell=6*(1/2)=3
Therefore unit cell has 2 A atoms and 3 B atoms so formula is A2B3