High school probability, ask good people for help.

First, choose three out of six, that is, 6*5*4/3*2* 1=20. The remaining three can't correspond to numbers, so there are only two (if 1.2.3 corresponds, the remaining 4.5.6 can't, so it can only be 645.564. ).

There are 6*5*4*3*2* 1=720 arrangements, so p = 40/720 =118.