The electronic configurations of atoms of three elements A. B and C are (2, 8, 1), (2, 8, 6) and (2, 8, 18, 7) respectively. Which option classifies the elements A. B and C as metals and non-metals correctly?