Answer:
Each added electron is assigned to the lowest-energy sublevel available. The first sublevel filled will be the 1s ... phosphorus, 15, 1s22s22p63s23p3