\(\pi< a< \frac{3\pi}{2}\Rightarrow2\pi< 2a< 3\pi\Rightarrow sin2a>0\)
\(cot2a=\frac{1}{2}\Rightarrow sin2a=\frac{1}{\sqrt{1+cot^22a}}=\frac{2\sqrt{5}}{5}\)
\(cos\left(a+\frac{\pi}{3}\right)+cos\left(a-\frac{\pi}{3}\right)=2cosa.cos\frac{\pi}{3}=cosa\)
\(tan\left(\frac{\pi}{2}-a\right)+tan\left(\frac{\pi}{2}+\frac{a}{2}\right)=\frac{-sin\frac{a}{2}}{cos\left(\frac{\pi}{2}-a\right).cos\left(\frac{\pi}{2}+\frac{a}{2}\right)}=\frac{sin\frac{a}{2}}{sina.sin\frac{a}{2}}=\frac{1}{sina}\)
\(\Rightarrow M=sina.cosa=\frac{1}{2}sin2a=\frac{\sqrt{5}}{5}=\frac{1}{\sqrt{5}}\)
\(\Rightarrow2a+b=7\)