Additional context (not necessary to read)
(This is actually an electrical engineering problem. I just simplified it to a math problem. The three triangles actually represent three complex numbers, which, as you know, can also be viewed as 2D vectors. The third triangle is the resultant vector of the first two triangles/vectors)
Problem statement
Given that $\cos\theta_1=0.8$ and $\cos\theta_3=0.9$, find $\cos\theta_2$ if $BC+EF=HI$ and $AC+DF=GI$.
My attempt
Let $HG=S$. Now,
For the first equation,
$$2000\cdot\cos\theta_{1}+500\cdot\cos\theta_2=S\cos\theta_3$$
$$\implies 2000\cdot0.8+500\cdot\cos\theta_2=S\cdot0.9$$
$$\implies 1600+500\cos\theta_2=0.9S\tag{1}$$
For the second equation,
$$2000\cdot\sin\theta_{1}+500\cdot\sin\theta_2=S\sin\theta_3$$
$$\implies 2000\cdot0.6+500\sin\theta_2=S\cdot \sin(\arccos(0.9))$$
$$[\text{Let $\sin(\arccos(0.9))=k$}]$$
$$\implies 1200+500\sin\theta_2=kS\tag{2}$$
Now,
$$\text{(1)/(2)}$$
$$\frac{1600+500\cos\theta_2}{1200+500\sin\theta_2}=\frac{0.9S}{kS}$$
$$\implies\frac{1600+500\cos\theta_2}{1200+500\sin\theta_2}=\frac{0.9}{k}$$
$$\implies1080+450\sin\theta_2=1600k+500k\cos\theta_2$$
$$\implies 450\sin\theta_2=(1600k-1080)+500k\cos\theta_2$$
$$\implies 450^2\sin^2\theta_2=(1600k-1080)^2+2\cdot(1600k-1080)\cdot500k\cos\theta_2+(500k)^2\cos^2\theta_2\tag{3}$$
$$\implies 450^2(1-\cos^2\theta_2)=(1600k-1080)^2+2\cdot(1600k-1080)\cdot500k\cos\theta_2+(500k)^2\cos^2\theta_2$$
$$\implies450^2-450^2\cos^2\theta_2=(1600k-1080)^2+2\cdot(1600k-1080)\cdot500k\cos\theta_2+(500k)^2\cos^2\theta_2$$
$$\implies((500k)^2+450^2)\cos^2\theta_2+2\cdot(1600k-1080)\cdot500k\cos\theta_2+((1600k-1080)^2-450^2)=0$$
$$\implies \cos\theta_2=0.91, -0.2459$$
Verification
Although I have found two values for $\cos\theta_2$, there could be extraneous roots due to $(3)$. So, I have to verify the solutions.
One way to verify would be to construct the third triangle, and find $\cos\theta_3$, and see if it equals $0.9$. Let's do that.
Using $\cos\theta_2=0.91$,
$$HI=1600+500\cdot0.91=2055$$
$$IG=1200+500\sin(\arccos(0.91))=1407.304$$
$$HG=\sqrt{2055^2+1407.304^2}=2490.6866$$
Now,
$$\cos\theta_3=\frac{2055}{2490.6886}=0.825\ne0.9$$
So, 0.91 is not a solution. Let's use $\cos\theta_2=-0.2459$ then.
Using $\cos\theta_2=-0.2459$,
$$HI=1600+500\cdot-0.2459=1477.05$$
$$IG=1200+500\sin(\arccos(-0.2459))=1684.6476$$
$$HG=\sqrt{1477.05^2+1684.6476^2}=2240.47$$
Now,
$$\cos\theta_3=\frac{1477.05}{2240.47}=0.659\ne0.9$$
I am surprised. None of the solutions I got are correct. Was $(3)$ a wrong thing to do? What mistake did I make?