valence electrons are number of the electrons in the outermost shell of an atom
silicon has 4 valence electrons
oxygen has 2 since in SiO3^-2 they are 3 this make valence electrons to be 6
SiO3^-2 have negative charge of two thes means has two extra electrons hence has 2 valence electrons