Solve for x rx+h=sx-k