Ratio of boys and girls in a class are is \(7:5\).
Let the number of boys be \(7x\) and girls be \(5x\).
According to the question,
\(7x=5x+8\)
Shifting \(5x\) to L.H.S.:
\(\Rightarrow 7x -5x=8\)
\(\Rightarrow 2x=8\)
Dividing by \(2\) on both sides:
\(\Rightarrow x =\dfrac{8}{2}\)
\(\Rightarrow x=4 \)
\(\therefore\),Number of boys \(=\ 7x\ =\ 7 \times 4\ =\ 28\)
And, Number of girls \(=\ 5x\ =\ 5 \times 4\ =\ 20\)
Total number of students \(=\ 20+28\ =\ 48\)