Solution:
Let the number of boys be 7x and that of girls be 5x
According to the given condition we have
Number of boys = Number of girls +8
The number of boys and girls in a class are in ratio 7:5.The number of boys is 8 more than the number of girls. What is the total class strength?