Explanation: The first shell can hold 2 electrons and the next one can hold 8. So, if we have an atom like boron which has 5 electrons, we would put 2 electrons in the first shell and we would put our remainder in the second shell.
I will attach an image with a boron atom and with the electrons.