Compound angle formula confusion I'm working through my book, on the section about compound angle formulae. I've been made aware of the identity $\sin(A + B) \equiv \sin A\cos B + \cos A\sin B$. Next task was to replace B with -B to show $\sin(A - B) \equiv \sin A\cos B - \cos A \sin B$ which was fairly easy. I'm struggling with the following though:
"In the identity $\sin(A - B) \equiv \sin A\cos B - \cos A\sin B$, replace A by $(\frac{1}{2}\pi - A)$ to show that $\cos(A + B) \equiv \cos A\cos B - \sin A\sin B$."
I've got $\sin((\frac{\pi}{2} - A) - B) \equiv \cos A\cos B - \sin A\sin B$ by replacing $\sin(\frac{\pi}{2} - A)$ with $\cos A$ and $\cos(\frac{\pi}{2} - A)$ with $\sin A$ on the RHS of the identity. It's just the LHS I'm stuck with and don't know how to manipulate to make it $\cos(A + B)$.
P.S. I know I'm asking assistance on extremely trivial stuff, but I've been staring at this for a while and don't have a tutor so hope someone will help!

Note that you can also establish:
$$\sin\left(\left(\frac{\pi}{2} - A\right) - B\right) =\sin\left(\frac{\pi}{2} - (A + B)\right) = \cos(A+B)$$ by using the second identity you figured out above, $\sin(A - B) \equiv \sin A\cos B - \cos A\sin B$, giving you:
$$\sin\left(\left(\frac{\pi}{2} - A\right) - B\right) = \sin\left(\frac{\pi}{2} - (A+B)\right)$$ $$ = \sin\left(\frac{\pi}{2}\right)\cos(A+B) - \cos\left(\frac{\pi}{2}\right)\sin(A+B)$$ $$= (1)\cos(A+B) - (0)\sin(A+B)$$ $$ = \cos(A+B)$$
