I would first distribute on the right to get:
\(\displaystyle 5z+j=rz-9r\)
Now, arrange the equation with the terms having z as a factor on the left, and everything else on the right:
\(\displaystyle rz-5z=j+9r\)
Now, factor z out on the left:
\(\displaystyle (r-5)z=j+9r\)
Now, divide through by \(\displaystyle r-5\) to get:
\(\displaystyle z=\dfrac{j+9r}{r-5}\)