In a class, the number of girls is 5 less than three times the number of boys. If the total number of students is 40, how many girls and boys are there?
Guide On Rating System
Vote
Let's use g to represent the number of girls and b to represent the number of boys.
We can set up two equations based on the given information:
g = 3b - 5 (the number of girls is 5 less than three times the number of boys)
g + b = 40 (the total number of students is 40)
Substituting the value of g from the first equation into the second equation, we get:
(3b - 5) + b = 40
Combining like terms, we have:
4b - 5 = 40
Adding 5 to both sides, we have:
4b = 45
Dividing both sides by 4, we get:
b = 11.25
Since we can't have a fraction of a person, we must round down to the nearest whole number. Therefore, b = 11.
Substituting this value back into the first equation, we find that g = 3(11) - 5 = 28.
Thus, there are 28 girls and 11 boys in the class.