Answer is: X has an atomic number 15; Y forms a 3- ion.
1) X has a 1+ ion; Y has a 1- ion is not correct, because X is probably metal (lost one electron, group 1) and Y is nonmetal (gain one electron, group 17).
2) X tends to form a 2+ ion; Y tends to gain two electrons is not correct, because X lost two electrons (probably metal from group 2).
3) X will tend to gain one electron; Y has eight valence electrons is not correct, because X is probably from group 17 and Y is noble gas (group 18).
4) Y is phosphorus (atomic number 15, group 15) and Y is nonmetal from group 15.