Two elements A and B have following electronic configuration
A=1s22s22p63s23p64s2B=1s22s22p63s23p3
It is expected that they form a compound AxBy then sum of x and y is : (Ignore charge only observe the value)
A3B2 by observing the electronic configuration we can see that A is Calcium and B is phosphorous.