So we are being asked about the ratio of boys to all students and the only information we have is the ratio of girls to all students. Since students can either be boys or girls then we know that the sum of both ratios must be 1. Then, if we use B to label the ratio of boys we have:

So the ratio of boys to all students is 2/5.
Next, we need to find the number of students in the class. We know that 15 are girls and since 3/5 of the total number of students are girls this means that:

Where N is the number of students. Now we just need to find N using this equation:

So there are 25 students in the class.