While your strategy is correct, you incorrectly evaluated the sine and cosine functions at $x = \pi/3$ and incorrectly took the derivative.
Let $f(x) = \cos x + 3\sin x$. Since
$$\cos\left(\frac{\pi}{3}\right) = \frac{1}{2}$$
and
$$\sin\left(\frac{\pi}{3}\right) = \frac{\sqrt{3}}{2}$$
when we evaluate $f(x)$ at $\pi/3$ we obtain
$$f\left(\frac{\pi}{3}\right) = \cos\left(\frac{\pi}{3}\right) + 3\sin\left(\frac{\pi}{3}\right) = \frac{1}{2} + \frac{3\sqrt{3}}{2} = \frac{1 + 3\sqrt{3}}{2}$$
Since the derivative of $g(x) = \cos x$ is $g'(x) = -\sin x$ and the derivative of $h(x) = \sin x$ is $h'(x) = \cos x$, the derivative of $f(x)$ is
$$f'(x) = -\sin x + 3\cos x$$
Thus, the derivative of $f(x)$ evaluated at $\pi/3$ is
$$f'\left(\frac{\pi}{3}\right) = -\sin\left(\frac{\pi}{3}\right) + 3\cos\left(\frac{\pi}{3}\right) = -\frac{\sqrt{3}}{2} + \frac{3}{2} = \frac{3 - \sqrt{3}}{2}$$
Hence, the equation of the tangent line is
$$y - \frac{1 + 3\sqrt{3}}{2} = \frac{3 - \sqrt{3}}{2}\left(x - \frac{\pi}{3}\right)$$
$f'(x) = \sin(\pi/3) + 3\cos(\pi/3)$to show $f'(x) = \sin(\pi/3) + 3\cos(\pi/3)$. Formatting tips here. – Em. Mar 04 '16 at 03:04