Given lines are 2x=2y=1z and −25−x=p7y−14=4z−3
⇒2x−5=(7P)y−2=4z−3
We know that the angle between the lines a1x−x1=b1y−y1=c1z−z1 and a2x−x2=b2y−y2=c2z−z2 is given by θ=cos−1∣a12+b12+c12×a22+b22+c22a1a2+b1b2+c1c2∣
Given, the angle between both lines is cos−1(32)
⇒cos−1(32)=cos−1(22+22+12×22+(7P)2+422×2+2×7P+1×4)
⇒32=3×4+49P2+164+72P+4
⇒32=3×P2+98056+2P
⇒P2+980=P+28
⇒P2+980=(P+28)2
⇒P2+980=P2+56P+784
⇒56P=196
⇒P=27.