Answer would be option B.
Option A is wrong because the middle % matches 0 or more characters, causing it to select names of length 4 as well.
Notice the escape sequence (default is "\" i.e. backslash) helps us to remove the special meaning attached to "%" and "_"
(Here I assume backslash as escape character)
Option B: "R\%" ensures that R% is present in beginning then '_' ensures that a single character is present and the following "%" ensures that 0 or more characters after that is accepted (leading it to accept the strings of length >5) and at last "\_A" ensures that "_A" is present in the end of the string.