The first question is:

(from now on I will use for and )

Replace by to get:

,

simplifying:

.

This may be solved using the quadratic formula to get: . Now the root is not possible for real angles so we are left with .

There are two solutions for this in the range , they are:

and , or:

and

RonL