Try to understand all the rules and laws like:
Aufbau Principle
Hund's rule
Pauli exclusion principle...
Then, you should understand the way in which you can fill the electrons in the orbitals!!
9.5m questions
12.2m answers