Direction ratios of the first line:
\[
(2, 3, p).
\]
Direction ratios of the second line:
\[
(2, 2, 2).
\]
For the lines to be mutually perpendicular, their direction vectors must satisfy:
\[
2 \times 2 + 3 \times 2 + p \times 2 = 0,
\]
\[
4 + 6 + 2p = 0,
\]
\[
10 + 2p = 0 \implies 2p = -10 \implies p = -5.
\]
Final answer:
\[
\boxed{p = -5}.
\]