rx+h=sx-k solve for x
Rx + h = sx - k Take all with x to the LHS Rx - sx = -k - hx(R - s) = - k -hx = (-k - h) / (R - s). Multiply top and bottom by -1.x = (k + h) / (s - R)