First add up the total parts in the ratio.
5 + 4 = 9
Now we need to know the value of each part
36 / 9 = 4
The girls has total of 4 parts, therefore we can just multiply the number of parts by the amount in each part
4 x 4 = 16
So there r 16 girls in the class