How do you solve and write the following in interval notation: x<5 or  x> -1?

In interval notation: $\left(- 1 , 5\right)$