How to get that answer:
We have 6 red out of 5+6+2 = 13 total.
The fraction 6/13 represents the probability of selecting red at random.
Because the marble is replaced, the probability does not change on the next selection.
The probability of getting two reds in a row is (6/13)*(6/13) = 36/169