Answer
$2\lt p \lt 6$
The graph is shown below.
Work Step by Step
$p$ is less than $6$.
$\Rightarrow p\lt 6$
and
$p$ is greater than $2$.
$\Rightarrow p\gt 2$
The compound inequality is
$2\lt p \lt 6$.
Graph the intersection of the graphs of $p\lt 6$ and $p\gt 2$.