Use five key factors—charge, atom, resonance, induction, and orbitals—to rank molecules by their relative basicity.