The electronic configuration of four elements and are given in brackets L(1s2,2s22p4);QL(1s2,2s22p6,3s23p5),p(1s2,2s22p6,3s1);R(1s2,2s22p6,3s2)The formulae of ionic compounds that can be formed between these elements are
L = oxygen; Q = Chlorine; P = Sodium; R = Magnesium