How many valence electrons are shared, gained, or lost by each atom of the six compounds?

• N2 • CCl4 • SiO2
• AlCl3 • CaCl2 • LiBr

please help