Explanation:
Let the total number of boys be x.
We know that :-

is the greatest fraction.
Now, considering the class AS whole, we can say that the value of class is 1.
According to Equation given:-


Taking LCM,


Fraction of the class are boys.
Hope it helps :D