The interval notation given to us means that x is between negative infinity and 5, excluding both endpoints.
So we can write [tex]-\infty < x < 5[/tex] which shortens to [tex]x < 5[/tex]
The graph will have an open hole at 5 on the number line, and shading to the left to indicate all points smaller than 5.