Phosphorus number 15 is a very unstable element. It has five valance electrons. 10 electrons are in the filled second shell leaving five valance electrons. the
Phosphorus can lose electrons giving a charge of +3 and +5.
Phosphorus can also gain electrons achieving a charge of -3
So the electron configuration is