Hi Thalia P.
You are given two totals and a couple of fractions, to use to calculate the ratio, if you are into pre-algebra and or getting everything in terms of one variable, I hope you find the substitution process below useful
First let's designate some variables
B = Boys
G = Girls
Now totals
B + G = 23 because there are 23 boys and girls in the classroom.
16 = 23 - 7 = total students who went on a field trip because 7 children were left
According to the information given
(2/3)B + (3/4)G = 16 went on a field trip
Since
B + G = 23
B = 23 - G
For the fractions, I will remove the denominators by multiplying the entire equation by 12
12((2/3)B + (3/4)G = 16)
8B + 9G = 192
Now if we substitute for B in the equation above we can find the number of Girls, G
8(23 - G) + 9G = 192
184 - 8G + 9G = 192
Combine like terms
184 + G = 192
Subtract 184 from both sides of the equation
G = 192 - 184
G = 8
Now we can calculate B
B = 23 - G = 23 - 8 = 15
B = 15
So the ratio of Boys, B to Girls, G is 15 to 8 and this can be checked in the original equation
(2/3)B + (3/4)G = 16
(2/3)*15 + (3/4)*8 = 16
10 + 6 = 16