You DON'T distribute the q, as someone suggested. That's unnecessary. Just DIVIDE each side by q. You'll then get r on the right side. Then ISOLATE r by ADDING to both sides, and that's it! The equation will be solved for r.