I was in between proving a trigonometric identity but couldn't succeed. I went through the solution and saw this in between
\begin{align}\frac{\cos A \cos B}{\sin A \sin B}&= \frac{3}{1}\\\\ \frac{\cos A \cos B +\sin A \sin B}{\cos A \cos B - \sin A \sin B}&= \frac{3+1}{3-1}\end{align}
What happened there in the second step?