You can
put this solution on YOUR website! .
This problem has unexpected and beautiful solution.
The number of permutations where #2 goes before #5 is exactly equal to the number of permutations where #2 goes AFTER #5,
so each of these numbers is half of 8!, which is the total number of all permutations of 8 objects.
ANSWER. 3*4*5*6*7*8 =
= 20160 ways.