I have 10 students in the class, and have 18 numbers.
Every student will get 9 random numbers from this set.
$$\begin{array}{c|c|c} 7&10&1\\\hline 9&2&17\\\hline 8&5&7 \end{array}$$
If I'm not wrong, there are $9! = 362880$ possibilities the students have the same order if they have the same number as another student.
How can I calculate the possibilities some students have the same number and same order as another student?