Hello, thank you for taking the time to post your question!
Since the order matters in this case the number of ways to arrange “n” items is given by the factorial of “n” … here n = 5, meaning that
5! = 5 x 4 x 3 x 2 x 1 = 120
So there are 120 different ways to line up the five people
I hope that helps you get moving in a better direction on this type of question! Feel free to reach out if you have any additional questions beyond that :)