For simplicity, you can let the hypotenuse of the orange triangle be $1$ (it's just a matter of scale).
The perimeter of the orange triangle is $\sin 20^\circ + \cos 20^\circ + 1$
Letting the small angle of the green triangle be $\theta$, its perimeter is $\tan \theta + \sec \theta + 1$
Equating the two, you need to solve $\tan \theta + \sec \theta = \sin 20^\circ + \cos 20^\circ$
You can simplify the LHS by expressing it as a single trig ratio. $\sin 20^\circ + \cos 20^\circ = \sqrt 2\sin(45^\circ + 20^\circ) = \sqrt 2 \sin 65^\circ$
You can proceed as follows. Let $c = \cos\theta$
The equation can be rewritten:
$\frac{\sqrt{1-c^2} + 1}{c} = \sqrt 2\sin 65^\circ$
All that's left is to solve the quadratic in $c$ (easy as the constant term vanishes) then take the arccosine. The other angles are the ones complementary to this and the right angle. You should get (approx) $14.08^\circ$ for the small angle and $75.92^\circ$ for the complementary angle.