Solve for r r^2-24=5r