5/8 of the students in my class were boys.

When 6 girls joined the class, the number of boys equaled the number of girls.
How many students were in my class then?

3x/8 + 6 = 5x/8

3x/8 + 6x8/8 _ this makes the denominator 8 = 5x/8

3x/8 + 48/8 = 5x/8

(Since all the denominators are the same we can just cross them out)

3x + 48 + 5x

48 = 5x - 3x

48 = 2x

48/2= 24

x=24

x + 6 =30 ( since we didnt add the 6 we just calculated how many there were before.

Ans= 30 You can thank me

whaaaaaa

To solve this problem, let's break it down step by step:

1. Let's start by representing the unknown number of students in your class as "x."
2. We know that initially, 5/8 of the students in your class were boys. This means that 5/8 * x were boys, and the remaining 3/8 * x were girls.
3. When 6 girls joined the class, the number of boys equaled the number of girls. This means that the number of boys increased by 6, and became equal to the number of girls.
4. Now, we can set up an equation using the information above:
(5/8 * x) + 6 = 3/8 * x
We add 6 to the number of boys (5/8 * x) to make it equal to the number of girls (3/8 * x).
5. To make the equation easier to work with, let's get rid of the fractions by multiplying both sides of the equation by 8. This gives:
5x + 48 = 3x
Now, we have eliminated the fractions.
6. Next, we can solve for x by subtracting 3x from both sides of the equation:
5x - 3x + 48 = 0
2x + 48 = 0
2x = -48
x = -48/2
x = -24
7. Since the number of students cannot be negative, it means that the equation has no solution in this case. Please double-check the information provided to ensure its accuracy.

In conclusion, if 5/8 of the students in your class were boys, and when 6 girls joined the class, the number of boys equaled the number of girls, there is no solution to the problem as it leads to a negative number of students.

before

x students
5x/8 boys and 3x/8 girls
so later
3x/8 + 6 = 5x/8

3 x + 48 = 5 x

2 x = 48
so
x = 24 students before
x+6 = 30 after 6 girls arrived