Assuming you know how to simplify this, I will not show the steps but can add them later on upon request
Lets use the quadratic formula now
Multiply the numbers 2 * 1 = 2
Moving on, I will do the second part excluding the extra details that I had shown previously as from the first portion of the quadratic you can easily see what to do for the second part.
48 girls are there. Given that there is a ratio of boys to girls of 7:8. Then divide 42 boys by 7 boys which equals 6. After, multiply 6 by 8 girls equals 48 girls.