the values can be found easily by the help of trigo identities and some properties of polynomials
tan(x+45)=3tan(3x)

(tanx + tan45

)/(1-(tanx)(tan45

) = 3(3tanx – tan
3x)/(1 - 3tan
2x) [identity of tan(a+b) and tan(3a)]

(tanx + 1)/(1-tanx) = (9tanx – 3tan
3x)/(1 - 3tan
2x)
now let tanx = a
(a+1)/(1-a)=(9a-3a3)/(1-3a2)
(a+1)(1-3a
2)=(9a-3a
3)(1-a)

a+1-3a
3-3a
2=9a-3a
3-9a
2-3a
4
3a
4-0a
3+6a
2-8a+1=0 [ the solutions or roots of this equation will be tanA,tanB,tanC,tanD as the roots of the question is given as x = A or B or C or D and a=tanx here]
now we can compare this equation as
px4+qx3+rx2+sx+t
and we know that the sum of solutions or roots of this equaion is
-q/p and here -q=0
hence sum of roots equal 0

tanA + tanB + tanC + tanD = 0
hence proved
i hope this helps
thanks