As mentioned in the comment, the following gives you an alternative way to compute the integral without using complex analysis.
I sketch my idea and let you finish the computation yourself. Please tell me in you need more details.
First, using that $\cos(t+\pi)=-\cos(t)$ and $\sin(t+\pi)=-\sin(t)$, you get
$$ \int_{0}^{2\pi} \frac{2+4\cos(t)}{5+4\sin(t)}dt=\int_{-\pi}^{\pi} \frac{2-4\cos(t)}{5-4\sin(t)}dt.$$
Let $u=\tan(t/2)$. Then
$$ \frac{dt}{du}=\frac{2}{1+u^2}$$
and, by the parametric formulas,
$$\frac{2-4\cos(t)}{5-4\sin(t)}=\frac{2-4\frac{1-u^2}{1+u^2}}{5-4\frac{2u}{1+u^2}}=\frac{6u^2-2}{5u^2-8u+5}.$$
Therefore
$$ \int_{-\pi}^{\pi} \frac{2-4\cos(t)}{5-4\sin(t)}dt=4\int_{-\infty}^{+\infty} \frac{3u^2-1}{(5u^2-8u+5)(u^2-1)}du.$$
You probably know how to continue from here, right?