Answer explained
Find the value of p so that the straight lines (x-1)/(-1)=(y+3)/p=(z-7)/2 and (x+1)/p=y/2=(z+6)/(-3) are perpendicular to each other.
Dot product of direction ratios is zero: -1(p)+p(2)+2(-3)=0 ⇒ p-6=0 ⇒ p=6.
Dot product of direction ratios is zero: -1(p)+p(2)+2(-3)=0 ⇒ p-6=0 ⇒ p=6.