$$ 4\operatorname{arccot}(2)+\arctan\left(\frac{24}7\right)=\pi $$ original image
To prove the above result, I tried to equate the original expression to some constant $a$ such that $0<a<2.5\pi$ (from the range of the inverse tangent). When I try to solve for $a$ by taking the tangent or sine of both sides, I arrive at the equations:
$$\begin{align} \sin(a) &=0 \\ \tan(a) &=0 \end{align}$$ which gives me two solutions ($\pi$ and $2\pi$) within the specified range.
I have already seen other solutions using complex numbers, so I would really appreciate if someone could point out where I'm going wrong rather than a solution via another method.