The correct options are
B Fluorine
D Magnesium
From the given options, only fluorine and magnesium have more than 5 electrons in its L-shell.
Elements with their electronic configuration and enumber of electrons in their L-shell are given below:
ElementElectronic configurationElectrons in L-shellBoron(2,3)3Carbon(2,4)4Fluorine2,77Magnesium(2,8,2)8