I have the following problem...

$\displaystyle \frac{9 cos(x)}{1+sin(x)}+\frac{9+9sin(x)}{cos(x)}$

First get the same denominator

$\displaystyle \frac{cos(x) (9 cos(x))}{cos(x) (1+sin(x))}+ \frac{1+sin(x) (9+9sin(x))}{1+ sin(x) (cos(x))}$

Here its were I start to run into some confusion of distribution. I see the first fraction is correct but the second its not.. What am I doing wrong?

$\displaystyle \frac{9 cos^2(x)}{cos(x) (1+sin(x))}+ \frac{9 + 18sin(x)+9sin^2(x)}{cos(x) (1+sin(x))}$