Given lines are
\[
x = my + n, \, z = py + q
\]
and
\[
x = m'y + n', \, z = p'y + q'
\]
Above equations can be rewritten as
\[
x - n' = p', \quad m = 1, \, p = 1
\]
Lines will be perpendicular if
Show Hint
For two lines to be perpendicular, their slope products should satisfy the condition \( mm' + pp' = 1 \).