There are a total of 120 ways.
Let’s say the students are numbered 1-5
you would do 1x2x3x4x5, which would give you a total of 120.
if you don’t understand: Think of it this way. How many different people can be first in line? 5. 4 now remain. Next position 4 possibilities, 3 remain. 3 possibilities for next position. 2 remain. 2 possibilities for next position. 1 left for the last position. This gives us 5 X 4 X 3 X 2 X 1 which can be written as 5! (5 factorial). This is equal to 120. This is normally known as a permutation.
I’m so sorry if this doesn’t help!