On a number line, the inequality 0 < x represents all the numbers greater than 0, but not including 0. This can be represented by a ray starting at 0 and extending to the right.
On the same number line, the inequality x ≤ 6 represents all the numbers less than or equal to 6. This can be represented by a closed circle at 6 and a ray extending to the left.
Combining both inequalities, we can represent 0 < x and x ≤ 6 on a number line as follows: