In given atom the structure is, K(2) L(8) M(5)
Configuration will be:
X=1s22s22p63s23p3
X–3e→X3+
So, it will be trivalent metal cation.
X3+=1s22s22p63s2
So, p electrons will be 6.
As per the configuration, this element is the phosphorous (atomic number 15). It exists as allotrope in tetra atomic i.e. X4 format.
The correct option is D.