can someone just help me?? I'm literally so confused on this. this is on electron configuration. the teacher tried to explain to me multiple times but i still don't understand

Answer:
you have to fill each boxes with upwards arrow first (↑) and followed by downwards arrow (↓) according to each element's atomic number