Let the initial numbers of red, blue, and green marbles be:
3x, 4x, 6x
After adding marbles:
Red (= 3x+20)
Blue (= 4x+15)
Green (= 6x+y)
Given new ratio:
(3x+20):(4x+15):(6x+y)=4:5:7
Using the first two parts:
4x+153x+20=54
Cross multiply:
5(3x+20)=4(4x+15)
15x+100=16x+60
x=40
Now use the green ratio:
6x+y3x+20=74
Substitute (x=40):
240+y140=74
Cross multiply:
980=960+4y
4y=20
y=5
Therefore, the number of green marbles added is 5.