\(a\in\left(\frac{\pi}{2};\pi\right)\Rightarrow cosa< 0\Rightarrow cosa=-\sqrt{1-sin^2a}=-\frac{4}{5}\)
\(A=\frac{sin\left(4\pi-\frac{\pi}{2}-a\right)}{sin\left(a+\frac{\pi}{4}\right)-cosa}=\frac{-sin\left(a+\frac{\pi}{2}\right)}{sin\left(a+\frac{\pi}{4}\right)-cosa}=\frac{-cosa}{sina.cos\frac{\pi}{4}+cosa.sin\frac{\pi}{4}-cosa}\)
\(=\frac{-\frac{4}{5}}{\frac{3}{5}.\frac{\sqrt{2}}{2}-\frac{4}{5}.\frac{\sqrt{2}}{2}-\frac{4}{5}}=...\)