J.R. S. answered 10/30/22
Ph.D. University Professor with 10+ years Tutoring Experience
1). For n = 2, you have both s and p orbitals. s can hold 2 electrons, p can hold 6 electrons. Total = 8.
2). For n = 4 and l = 1, you have the 4p orbital. p can hold 6 electrons. Total = 6.
3). For n = 7, l = 1 and ml = -1, you have the 4 p orbital (subshell), but of the 3 different p orbitals, you have only one of them (identified by ml = -1). This can hold 2 electrons. Total = 2.