Answer :
the line has 'n' number of people. the question says that every 5th person will earn a free ticket while the 6th person will earn a gift card. you must find a appropriate and lowest common factor between the numbers.
the answer is the 30.
the answer is the 30.