A bag is filled with green and blue marbles. There are 77 marbles in the bag. If there are 25 more green marbles than blue marbles, find the number of green marbles and the number of blue marbles in the bag.

since g = b+25,

b + b+25 = 77
Solve for b, and then get g=b+25

To find the number of green and blue marbles in the bag, let's set up equations based on the given information.

Let's assume the number of blue marbles is "x". Since it is given that there are 25 more green marbles than blue marbles, the number of green marbles would be "x + 25".

Now, we know that the total number of marbles in the bag is 77. So, we can set up the following equation:

x + (x + 25) = 77

Simplifying the equation, we get:

2x + 25 = 77

Subtracting 25 from both sides:

2x = 52

Dividing by 2:

x = 26

Therefore, there are 26 blue marbles in the bag.

Now, substituting the value of x back into our equation for the number of green marbles:

x + 25 = 26 + 25 = 51

So, there are 51 green marbles in the bag.

In conclusion, there are 51 green marbles and 26 blue marbles in the bag.