If $0^\circ < x < 180^\circ$ and $\cos x + \sin x = \frac{1}{2},$ then $\tan x$ can be expressed in the form $-\frac{a + \sqrt{b}}{c}$ when simplified, where $a,$ $b,$ and $c$ are positive integers.  Find $a + b + c.$
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
If $0^\circ < x < 180^\circ$ and $\cos x + \sin x = \frac{1}{2},$ then $\tan x$ can be expressed in the form $-\frac{a + \sqrt{b}}{c}$ when simplified, where $a,$ $b,$ and $c$ are positive integers.  Find $a + b + c.$
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
14
If $0^\circ < x < 180^\circ$ and $\cos x + \sin x = \frac{1}{2},$ then $\tan x$ can be expressed in the form $-\frac{a + \sqrt{b}}{c}$ when simplified, where $a,$ $b,$ and $c$ are positive integers.  Find $a + b + c.$
train