Solve for x

(x/a) - 1 = (x/b) + 2

This is what i tried doing:

(x/a) - (1/a) = (x/b) + (2/b)

(-x/a) = (2x/b)

-bx + 2xa

x(-b +2a)

However i think ive done it wrong.

Also help would be appreciated for this equation as well:

Solve for x

(p-qx/t) + p = (qx - t/p)

really have no idea where to start