From the symbol 3115P, state:
(i) mass number of phosphorus,
(ii) atomic number of phosphorus, and
(iii) electron configuration of phosphorus.
An element along with its atomic number and mass number is represented as XAz
where X is the symbol of the element, Z is the atomic number and A is the mass number.
Therefore, in P3115
(i) Mass number: 31
(ii) Atomic number: 15
(iii) Electronic configuration : (2, 8, 5), that is K:2 L:8 M:5
1s2,2s2,2p6,3s2,3p3