We have,
Total number of balls in the box =7+8+5=20 balls
Total possible outcomes =20=n(S)
Neither red ball nor white ball = green ball
Event of not drawing a red or white ball = E = number of green ball =8
So, n(E)=8
Hence, probability of drawing a white ball =n(E)/n(S)=8/20=2/5