5 + 3 + 2 = 10 total marbles.
Steve picking a yellow one would be 3/10 (3 yellow / 10 total)
The marble is put back, so there will still be 7 marbles in the bag.
Sam picking a yellow one would then be the same as Steve: 3/10
The probability of them both picking yellow would be 3/10 x 3/10 = 9/100