Solution:
Key idea: Two lines with direction ratios a1,b1,c1 and a2,b2,c2 are perpendicular exactly when a1a2+b1b2+c1c2=0, because this sum is the dot product of their direction vectors. First rewrite each line so that x, y and z have coefficient +1 in the numerators; only then are the denominators direction ratios.
Step 1 — Part (i): standard form of the first line.
We write 2−y=−(y−2) and 1−z=−(z−1), and move each minus sign to the denominator.
5λ+2x−5=−5y−2=1z−1
So its direction ratios are 5λ+2,−5,1.
Step 2 — Part (i): standard form of the second line.
We take out 2 from 2y+1, and write 1−z=−(z−1).
1x=2λy+21=3z−1
So its direction ratios are 1,2λ,3.
Step 3 — Part (i): use the perpendicular condition.
The sum of the products of the direction ratios must be 0.
(5λ+2)(1)+(−5)(2λ)+1(3)5λ+2−10λ+35−5λλ=0=0=0=1
Step 4 — Part (ii): standard form of the first line.
We write 1−x=−(x−1), 7y−14=7(y−2) and 5z−10=5(z−2), and divide through.
−3x−1=2λ/7y−2=11/5z−2
So its direction ratios are −3,72λ,511.
Step 5 — Part (ii): standard form of the second line.
We write 7−7x=−7(x−1) and 6−z=−(z−6).
−3λ/7x−1=1y−5=−5z−6
So its direction ratios are −73λ,1,−5.
Step 6 — Part (ii): use the perpendicular condition.
The sum of the products of the direction ratios must be 0.
(−3)(−73λ)+72λ(1)+511(−5)79λ+72λ−11711λλ=0=0=11=7
Therefore, (i) λ=1; (ii) λ=7.