Answer:


Explanation:
Let the number of girls be
and the number of boys be
.
According to the problem:

We also know that the total number of students is 42, so
.
Now, we have two equations with two variables:
-

-

We can solve these equations to find the values of
and
.
Step 1: Solve for
in terms of

From the first equation, we have

Step 2: Substitute the expression for
into the second equation
Replace
in the second equation with the expression we found in step 1.

Step 3: Solve for

Now, we have an equation with only one variable,
:

To solve for
, first find a common denominator for the fractions:

Combine the fractions:

Now, multiply both sides of the equation by
to isolate
:
Step 4: Find the value of

Now that we have the value of
, we can find the value of
using the first equation:
So, there are 12 boys and 30 girls in the class.
----------------------------------------------------------------------------------------------------------