A group of people are arranging themselves for parade. In case, they line up 3 to a row, one person is left over. In case, they line up 5 to a row, two people are left over. In case, they line up 6 to the row, one person is left over, and In case, they line up 8 to a row, 5 people are left over.
a) What was the smallest possible number of people?
b) What are all possible numbers of people?