[tex]\text{tg} x+\text{ctg}x = 5\Big|^2 \\ \\ \text{tg}^2 x+2\text{tg}x\text{ctg}x+\text{ctg}^2 x = 25 \\ \text{tg}^2 x+2+\text{ctg}^2 x = 25\\ \\\boxed{\text{tg}^2 x+\text{ctg}^2x = 23 } \Big|\cdot \text{tg} x+\text{ctg}x\\ \\ (\text{tg} x+\text{ctg}x )(\text{tg}^2 x+\text{ctg}^2x) = 23\cdot 5\\ \\ \text{tg}^3x+\text{tg} x\text{ctg}^2 x+\text{ctg} x\text{tg}^2x+\text{ctg}^3x = 115\\ \\ \text{tg}^3x+\text{ctg} x+\text{tg} x+\text{ctg}^3x = 115 \\ \\ \text{tg}^3x+5+\text{ctg}^3x = 115[/tex]
[tex]\boxed{\text{tg}^3x+\text{ctg}^3x = 110}[/tex]