For L1: 3x−2=2y+1=2z−6
∴ Point on line is A(2,−1,6)
Parallel vector to this line is,
p=3i+2j+2k
For L2: 3x−6=−2y−1=0z+8
∴ Point on line is B(6,1,−8)
Parallel vector to this line is,
q=3i−2j+0k

Now shortest distance between this two lines is,
=∣p×q∣AB.(p×q)
Now, AB=4i+2j−14k
=4i+6j−12k
∴ ∣p×q∣=16+36+144=196=14
and AB.(p×q)=+16+12+168=+196
∴ Shortest distance =14196=14