The number of ways of selecting 5 students from 12 students is:
[tex]\begin{gathered} 12C5=\frac{12!}{(12-5)!5!} \\ 12C5=\frac{12\times11\times10\times9\times8\times7!}{7!\times5!} \\ 12C5=\frac{12\times11\times10\times9\times8}{5\times4\times3\times2\times1} \\ 12C5=\frac{95040}{120} \\ 12C5=792\text{ways} \end{gathered}[/tex]Hence, the number of ways of forming the committee is 126 x 792 = 99792 ways.