Solve this problem by setting up a proportion to model the number of boys to the total number of students than the class:
80/100=20/x
Now, cross multiply:
80x=2000
Then, divide 2000 by 80 to solve for x:
x=25
25 is the total number students in the class.
Hope this help