In class A, 15 out of the 30 students are girls, and in class B, 24 out of the 40 students are girls. Which class has a higher percentage of girls?​