So the number of people in this class can be divisible by 2, 3 and 7.
So we can find the common multiples of 2, 3 and 7 in this problem.
The common multiple of 2,3,7 is 42,84. ...
Because the topic tells us that there are less than 50 people.
So there are 42 students in this class.
Option 2