I think this is a homework question so I'm giving only the method.
The answer is 5-factorial, expressed as 5!,
where the factorial of a number N is the product of:
N X (N-1) X (N-2) X .... X 1
E.g. 3! = 3 X 2 X 1 = 6.
Chat with our AI personalities
7! = 5040 ways.
24
There are 24 ways to arrange 4 people in a row.
40320
6! = 720