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

To solve this problem, we can set up a system of equations based on the given information.

Let's assume the number of blue marbles in the bag is "x". Since there are 21 more green marbles than blue marbles, the number of green marbles would be "x + 21".

According to the problem, the total number of marbles is 113. So, we can set up the equation:

x + (x + 21) = 113

Simplifying the equation:

2x + 21 = 113

Subtracting 21 from both sides:

2x = 113 - 21

2x = 92

Dividing both sides by 2:

x = 92 / 2

x = 46

Therefore, there are 46 blue marbles in the bag.

To find the number of green marbles, we substitute the value of x back into the equation:

x + 21 = 46 + 21 = 67

So, there are 67 green marbles in the bag.

b+g = 113

g = b+21
now just solve for b and g