There are 10 total marbles, 2 are yellow.
The probability of picking a yellow one would be 2/10, which simplifies to 1/5
The marble is replaced and picked again, so the probability of the second pick is the same as the first one 1/5
The probability of picking both the same = 1/5 x 1/5 = 1/25