9+5+8+8=30 <-- all balls
The probability of choosing green ball is \(\dfrac{5}{30}=\dfrac{1}{6}\)
The probability of choosing yellow ball is \(\dfrac{8}{30}=\dfrac{4}{15}\)
So, the probability of choosing green ball and then yellow one is \(\dfrac{1}{6}\cdot\dfrac{4}{15}=\dfrac{2}{45}\)