How is the total of nine patterns obtained?

Mulḥaq bi-Rubāʿī: Definition, Two Groups and Nine Patterns