Using the double angle formula of $\tan(x)$ and knowing that $\cot(\dfrac{\pi}{6} ) = \sqrt3$ we can make progress towards finding the value of $\cot(\dfrac{\pi}{12})$.
$\cot(2x) = \dfrac{1-\tan^2(x)}{2\tan(x)}$
$\cot(\dfrac{\pi}{6}) = \dfrac{1-\dfrac{1}{\cot^2(\pi/12)}}{2(\dfrac{1}{\cot(\pi/12)})}$
$2\sqrt3=\cot(\dfrac{\pi}{12})-\dfrac{1}{\cot(\pi/12)}$
$\cot^2(\dfrac{\pi}{12})-2\sqrt3 \cot(\dfrac{\pi}{12})-1=0$
We can solve the last line with the quadratic formula and it tells us that:
$\cot(\dfrac{\pi}{12})=2+\sqrt3$ or $-2+\sqrt3$
But this second solution is wrong? Of course $\cot$ can't have two values for one input, but where does this second solution come from?
It comes from the fact that you solved a quadratic with nonzero discriminant, in this case being $$(-2\sqrt 3)^2-4(1)(-1)=12+4=16.$$