Solve: $$\frac{\sin(xº)\sin(80º)}{\sin(170º - xº) \sin(70º)} = \frac {\sin(60º)}{\sin (100º)}$$
I was solving a geometry problem with trigonometry, and after applying a lot of law of sines i got to this equation in 1 variable, but i'm not capable of solving it. The answer to the problem is $40º$, and by Wolfram Alpha i saw that this equation it's correct, but i don't know how to solve it by hand.
Any hints?
($xº$ is a value for an right triangle, that's why i'm looking for one solution.)
Here is the problem if anyone find a different answer:

$$\sin170=\sin10$$
$$\sin100=\sin80=\cos10$$
$$\cot(90-x)=\tan x$$
$$\tan10\cot x=\dfrac{\cos(70-60)}{\sin60\sin70}-1$$
$$=\cot70\cot60$$
$$\cot x=\tan20\tan80\cot60$$
Use Proving a fact: $\tan(6^{\circ}) \tan(42^{\circ})= \tan(12^{\circ})\tan(24^{\circ})$, to find
$$\tan20\tan40\tan80=\tan(3\cdot20)=?$$
Consequently $$\cot x=\cot40$$