we have
\(rx+h=sx-k\)
Group terms that contain the same variable, and move the other terms to the opposite side of the equation
\(rx-sx=-k-h\)
\(x(r-s)=-(k+h)\) -----> divide by \((r-s)\) both sides
\(x=-\frac{(k+h)}{(r-s)}\)
therefore
the answer is
\(x=-\frac{(k+h)}{(r-s)}\)