40320 ways can they line up to purchase their tickets.
What in mathematics is a permutation?
given that n = 8 people
1st person have 8 choices to take ticket &
2nd person have 7 choices & 3rd person have 6 like that 8 people can purchase their tickets in = 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 ways
= 8 !
= 40320
Learn more about permutations
brainly.com/question/1216161
#SPJ4