Candy bars were distributed equally among students of a class. The number of candy bars each student got was one-eighth of the number of students. Had the number of students been half, each student would have got 16 candy bars. What is the total number of candy bars that were distributed? [4 MARKS]