The classification of the simple modular Lie algebras: VI. Solving the final case