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.
The dot product of direction vectors (-1,p,2) and (p,2,-3) must vanish: -p+2p-6=0 ⇒ p=6.
The dot product of direction vectors (-1,p,2) and (p,2,-3) must vanish: -p+2p-6=0 ⇒ p=6.