Пусть $$y = \text{tg } x$$. Уравнение принимает вид $$y^2 - 6y + 8 = 0$$. Корни: $$y_1 = 2, y_2 = 4$$.
1) $$\text{tg } x = 2 \implies x = \text{arctg } 2 + \pi n, n \in \mathbb{Z}$$
2) $$\text{tg } x = 4 \implies x = \text{arctg } 4 + \pi n, n \in \mathbb{Z}$$