So, we are to solve for x in:
[tex] \frac{x + k}{m} = r[/tex]
Cross multiply the above to solve for x
[tex]x + k = mr[/tex]
Now, collect like terms to find x
Therefore: [tex]x = mr - k[/tex]