Answer: 0.235
======================================================
Step-by-step explanation:
9 yellow
9 red
9+9 = 18 total
If you select a marble at random, the chances of it being yellow are 9/18.
If you selected another marble at random, without replacing the first marble, then 8/17 is the probability of getting another yellow marble. I subtracted 1 from the numerator and denominator of 9/18 to go to 8/17.
We multiply the two results
(9/18)*(8/17) = 0.235 approximately
There's roughly a 23.5% chance of getting two yellow in a row, where we don't replace the first marble selected.