Sub-shell electronic configuration of X is given below.
1s2 , 2s2 , 2p5
a. The element Y is coming just below the element in same group. Then write the subshell electronic configuration of Y.
b. Write the sub-shell electronic configuration of the element next to X in same period.