Can someone help me solve for x? I tried many different ways, but I never got the answer so can someone show me the steps so I can understand what I did wrong?

1.

$\displaystyle y = 1 - \frac {1}{1-x}$

The answer should be $\displaystyle x = \frac {y}{y-1}$, but I don't know how to get that answer...

2.

$\displaystyle y = 1 + \frac {1}{1+ \frac {1}{1-x}}$

The same for this one, i don't know how to get the answer $\displaystyle x= \frac {2y -3}{y-2}$