Solve for X - Rearrangement question

Hi

Can someone explain the thought process behind the rearrangement at the end for these two examples?

$\displaystyle

d(a + 9x) = y

$

$\displaystyle

da + 9dx = y

$

$\displaystyle

9dx = y - da

$

$\displaystyle

x = \frac{y-da}{9d}

$

I can't see how you get from that to:

$\displaystyle

x = \frac{1}{9}(\frac{y}{d} - a)

$

Same with this example:

$\displaystyle

f(a + x) = y

$

$\displaystyle

fa + fx = y

$

$\displaystyle

fx = y - fa

$

$\displaystyle

x = \frac{y - fa}{f}

$

To this:

$\displaystyle

x = \frac{y}{f} - a

$

Thanks