Order matters use permutation
[tex]\\ \rm\Rrightarrow ^nP_r=\dfrac{n!}{(n-r)!}[/tex]
[tex]\\ \rm\Rrightarrow ^8P_5[/tex]
[tex]\\ \rm\Rrightarrow \dfrac{8!}{(8-5)!}[/tex]
[tex]\\ \rm\Rrightarrow \dfrac{8!}{3!}[/tex]
[tex]\\ \rm\Rrightarrow 8(7)(6)(5)(4)[/tex]
[tex]\\ \rm\Rrightarrow 6720ways[/tex]