Answer:
Initially there were 5 red marbles.
Explanation:
Let the original number of red marbles = x
Let the original number of blue marbles = y
Then \[x/x+y = 1/5\]
=> \[5x = x + y\]
=> \[4x = y\]
After adding five more red marbles, (x+5)/(x+y+5) = 1/3
=> \[3x + 15 = x+ y + 5\]
=> \[2x + 10 = y\]
Solving, \[4x = 2x + 10\]
=> \[4x -2x = 10\]
Or x = 5
y = 4x = 20
So initially there were 5 red marbles.
Verifying the result,
Initial condition: \[5/(20+5) = 1/5\]
Final condition: \[(5+5)/(20+5+5) = 1/3\]