M-shell can aquire maximum 18 electrons but due to octet rule it has only 8 electrons in potassium
and octet rule states that The maximum number of electrons that can be accommodated in the outermost orbit is eight....so It can have 18 electrons only when N shell contain minimum 1 electron. because at that time N is the outermost orbit