First, find the total amount of socks, these will be your options. There are 10
So, your probability of getting a blue sock the first time is 3/10. Them, you replace it, meaning it is no more an option, this brings the number of options that you have down to 9. to get a red sock, you will have a probability of 4/9. But since the 2 events are independent (they are related), we will need to multiply both their probability.
3/10 x 4/9 = 12/90 = 2/15