Rather than memorizing specific rules for every operation and case, you want to use algebra here. The big thing to remember is that the equal sign means “is the same as”. So if you do the same thing to two things that are the same, then they stay the same right?
If you multiply both sides by 2, you get 2(1/2)=2(0.5), which simplifies to 1=1, also true.
So in your above case, you can multiply both sides of X=S/R by R
Since S is being divided into R pieces and then added R times, that’s the same as S (a pizza is cut into 5 pieces. 5 pieces of that pizza are put together, you have the original pizza).
We divide both sides by X. R times X divided by X gives us R because we have X number of Rs, divided into X groups leaves 1 R per group.
And you’ve successfully found R!