If $\frac{\cos x}{\cos y}=\frac{a}{b}$ then $a\tan x +b\tan y$ equals If $$\frac{\cos x}{\cos y}=\frac{a}{b}$$ Then $$a \cdot\tan x +b \cdot\tan y$$  Equals to (options below): 
(a)  $(a+b) \cot\frac{x+y}{2}$ 
(b)  $(a+b)\tan\frac{x+y}{2}$ 
(c)  $(a+b)(\tan\frac{x}{2} +\tan\frac{y}{2})$ 
(d)  $(a+b)(\cot\frac{x}{2}+\cot\frac{y}{2})$ 
My approach : 
$$\frac{\cos x}{\cos y} = \frac{a}{b} $$
[ Using componendo and dividendo ] 
$$\frac{\cos x +\cos y}{\cos x -\cos y} = \frac{a+b}{a-b}$$
$$=\frac{2\cos\frac{x+y}{2}\cos\frac{x-y}{2}}{2\sin\frac{x+y}{2}\sin\frac{y-x}{2}}$$
I'm stuck, I'd aprecciate any suggestions. Thanks.

So, we have $$\frac a{\cos x}=\frac b{\cos y}=\frac{a+b}{\cos x+\cos y}$$
$$\implies a\tan x+b\tan y=\frac a{\cos x}\cdot\sin x+\frac b{\cos y}\cdot\sin y$$
Putting the values of $\displaystyle\frac a{\cos x},\frac b{\cos y}$
$$a\tan x+b\tan y=(\sin x+\sin y)\frac{(a+b)}{\cos x+\cos y}$$
Now, $\displaystyle \cos x+\cos y=2\cos\frac{x+y}2\cos\frac{x-y}2$ and 
$\displaystyle \sin x+\sin y=2\sin\frac{x+y}2\cos\frac{x-y}2$
