I don’t really know how to explain how to write electron configurations in a short paragraph so maybe look up a video? It’s really easy to understand once you get the hang of it but i’ll attach a picture to help you write electron configurations for any element. Try to think of it as reading the periodic table from left to write until you end up on the element.