Given,
and $ r \cdot a =0 $
$ r \times b = c \times b $
So, $ a \times( r \times b )= a \times( c \times b ) $
$\Rightarrow r ( a \cdot b )- b ( a \cdot r )= c ( a \cdot b )- b ( a \cdot c ) $
$ \Rightarrow r ( a \cdot b )= c ( a \cdot b )- b ( a \cdot c ) $
$ \Rightarrow r = c - b \left(\frac{ c \cdot a }{ a \cdot b }\right)$