We have to choose 4 teachers from 10 teachers.
So, the number of ways of doing this is

We have to choose 5 students from 8 students.
So, the number of ways of doing this is

Now, we have to choose both teachers and students.
So the number of ways is

The different number of ways the committee made is 11760 ways.