This document provides information on naming and writing formulas for different types of compounds. It discusses trends in the number of valence electrons for different groups of elements. It also explains how atoms gain or lose electrons to achieve stable octet configurations and the resulting ion charges. The document outlines rules for naming and writing formulas for ionic compounds, acids, and molecular compounds involving nonmetals. Key aspects covered include recognizing polyatomic ions in acids and using prefixes to indicate the number of nonmetal atoms in molecular compounds.