Atoms of eight elements A, B, C, D, E, F, G and H have the same number of electronic shells but different number of electrons in their outermost shell. It was found that elements A and G combine to form an ionic compound which can also be extracted from sea water. This compound is added in a small amount to almost all vegetable dishes during cooking. Oxides of elements A and B are basic in nature while those of E and F are acidic. The oxide of D is almost neutral. Based on the above information answer the following question.
To which group or period of the periodic table do the listed elements belong?