simplify the equation which solve for `R_all`.