Answer: 50 students
Explanation:
A ratio is very similar to a fraction, just put together differently. So, there are two ways of doing this. First, you could imagine this as a fraction
2 + 3 = 5 so 5 is our denominator. Then we need our numerator. Because we have the number or boys, we use that part of the ratio as our numerator
2/5 is our fraction, meaning two-fifths of the class are boys.
Now, to find the actual number in the class, we will use a proportion.

Cross-Multiply (multiply 20(5) and 2(x)) and you will end up with this

Now, divide 100 by 2 and you will get your answer: 50
OR
The second way of doing this is to set up a proportion with the existing ratio, like so:

Like before, cross multiply and then divide to isolate your x and you should get 30, which is the number of girls. Add 20+30 and you will get 50.
Either process works the same, so just pick the one that makes the most sense to you!