What I did was
$$b\ \cos (\theta) + a \sin (\theta) = \dfrac{ab}{c} \\ b\ \cos (\theta) = \frac{ab}{c} - a\ \sin (\theta) $$ Square both sides and using sum of roots and product of roots as
$$\alpha + \beta = \dfrac{2a^2b}{c(a^2+b^2)}\ \ \text{and}\ \ \alpha\beta = \dfrac{a^2b^2 - b^2c^2}{c^2(a^2+b^2)}$$
Now $$b\ \cos (\theta) - \dfrac{ab}{c} = -a\ \sin (\theta)$$ Square both sides and using sum of roots and product of roots as
$$ \alpha + \beta = \dfrac{2ab^2}{c(a^2+b^2)} \\ \alpha\beta = \dfrac{a^2b^2 - a^2c^2}{c^2(a^2+b^2)} $$
I don't know how to solve further.