If there are at least two letters between the R's, our word can only look like RXXXR, RXXRX, or XRXXR. In each of these 3 cases, we'll have 3! = 6 ways to fill in the remaining letters, so the answer is 18.
If you wanted to confirm that answer, or practice a wider variety of problem, you could solve 'backwards', by counting how many words we could make with no restrictions, then removing the words we do not want to count, though this definitely is a less efficient approach here. Since we have 2 R's, we could make 5!/2! = 60 words in total using these 5 letters, if we had no restrictions. Now if we want to divide those 60 possibilities into cases, where the R's are separated by differing numbers of letters:
• if the R's should be separated by 0 letters, so if "RR" needs to appear together in a word, then we'd really be arranging the four "letters" O, D, E, and RR, and we could make 4! = 24 words
• if the R's should be separated by 1 letter, then the first R can be the first, second or third letter in the word (i.e. our word can look like RXRXX, XRXRX or XXRXR), and in each case we'll have 3! = 6 ways to fill in the remaining letters, so in 3*6 = 18 words the R's will be separated by a single letter.
Those two cases are the only cases we do not want to count to solve the original problem, so there must be 60 - 24 - 18 = 18 words we can make where the two R's are separated by at least two letters.