The ratio of girls to boys is 20:15, but we can simplify this by dividing both numbers by 5, to make it 4 girls:3 boys.
20+15=35, the total number of students in the class. This would mean the ratio of girls to total students is 20:35, which we can again simplify by dividing both sides by 5 to make it 4 girls:7 students