Ritika bought a few green apples and a few red apples. There were 35more green apples than red apples. If the ratio of green apples to red apples was 8:3 ,how many apples of each variety did she bring ?

red apples ---- x

green apples ---- x+35

(x+35)/x = 8/3
8x = 3x + 105
..
x =

X=21 x+35= 56

X=21 x+35=56

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

Let's assume the number of red apples Ritika bought is represented by 'x'.

According to the problem, there were 35 more green apples than red apples. Therefore, the number of green apples can be represented as 'x + 35'.

The ratio of green apples to red apples is given as 8:3. This means that the number of green apples divided by the number of red apples is equal to 8/3.

Setting up the equation:
(x + 35) / x = 8/3

To solve for x, we can cross-multiply:
3(x + 35) = 8x

Expanding the equation:
3x + 105 = 8x

Bringing the variables to one side:
8x - 3x = 105
5x = 105

Now, dividing both sides by 5:
x = 105 / 5
x = 21

So, Ritika bought 21 red apples.

To find the number of green apples, we substitute the value of x back into the equation for the number of green apples:
x + 35 = 21 + 35 = 56

Therefore, Ritika bought 21 red apples and 56 green apples.