The lines need to be rewritten in the standard ax−x1=by−y1=cz−z1 form to extract direction ratios.
Line 1: −3x−1=2p2y−2=2z−3
=−3x−1=2p2(y−1)=2z−3
=−3x−1=py−1=2z−3
Direction ratios of Line 1: (−3,p,2)
Line 2: −3px−1=4y−1=56−z
Since 6−z=−(z−6):
=−3px−1=4y−1=−5z−6
Direction ratios of Line 2: (−3p,4,−5)
Two lines are perpendicular when the dot product of their direction ratios equals zero:
a1a2+b1b2+c1c2=0
(−3)(−3p)+(p)(4)+(2)(−5)=0
9p+4p−10=0
13p=10
p=1310