how to solve 9+5r=-17-8r

Move the 'r' terms to one side and the constant terms to the other. That should give you

13 r = -26

Then divide boe side of the equation by 13