I don't know how to use as a bar diagram, but all I know is the solution is 30 students in the class. 8/10=24, so 10/10=x, since (10/10)/(8/10)= 5/4, then you multiply 24 by 5/4 to get 30 students as your answer.
Hope I'm a brainliest for this question!