Don't type in all caps. It is the text message equivalent of shouting, therefore rude and annoying.
I'm not going to answer the question for you, but I will show you three of the six possibilities for the order of the five students.
Nicole Nicole Nicole
Joe Kim Kim
Kim Joe Mark
Mark Mark Joe
Linda Linda Linda
Just swap the position of Nicole and Linda to get the other three possibilities.
John

My calculator said it, I believe it, that settles it