Question 913405
re arrange the equation to make x the subject 
ax +b =px +q
ax-px = q-b
x(a-p) = q-b
x = (q-b)/(a-p)
----------------------- 
g (x +1)= f -x
qx + q = f - x
qx + x = f-q
(q+1)x = f-q
x = (f-q)/(q+1)
---------------------
Cheers,
Stan H.
------------