The angles in a particular triangle are in arithmetic progression, and the side lengths are $4,5,x$. The sum of the possible values of $x$ equals $a+\sqrt{b}+\sqrt{c}$ where $a, b$, and $c$ are positive integers. What is $a+b+c$? $\textbf{(A)}\ 36\qquad$ $\textbf{(B)}\ 38\qquad$ $\textbf{(C)}\ 40\qquad$ $\textbf{(D)}\ 42\qquad$ $\textbf{(E)}\ 44$
Since the angles are in AP, the middle angle is $60^\circ$. If $60^\circ$ is opposite $x$ (between the sides $4,5$): $x^2=16+25-20=21$.
If $60^\circ$ is opposite the side $5$: $25=16+x^2-4x\Rightarrow x^2-4x-9=0\Rightarrow x=2+\sqrt{13}$ (opposite side $4$ gives no real solution: discriminant $<0$).
Sum $=\sqrt{21}+2+\sqrt{13}$, so $a+b+c=2+13+21=36$. The answer is (A).
The angles in a particular triangle are in arithmetic progression, and the side lengths are $6,7,x$. The sum of the possible values of $x$ equals $a+\sqrt b+\sqrt c$, where $a,b,c$ are positive integers. What is $a+b+c$?