Given that, the ratio of girls to boys in class is 9 to 7.
Let's assume there is 9x girls and 7x boys in the class.
There is total of 80 students which means sum of 9x and 7x must be equal to 80. So, we can set up an equation as following:
9x + 7x = 80
16x = 80 Combine the like terms.
Divide each sides by 16 to isolate x.
So, x = 5
Since there is 9x girls in the class. So, next step is to substitute x=5 in 9x to get the number of girls in the class. Therefore,
9x = 9(5) =45.
Hence, there is 45 girls in the class.