The greatest common factor is r3 so
r5 + 3 r4 +18 r3 = r3 ( r2 +3 r + 18)
The trinomial r2 + 3 r +18 does not factor with real numbers.
The problem was probably supposed have -18 instead of +18
The problem was probably supposed have -18 instead of +18
In that case the trinomial would be r2 + 3r -18 which does factor as
r2 + 3 r -18 = (r -3) (r + 6)
The full answer would then be r3 ( r -3) (r + 6)