1. **Determine the positions of \( P \) and \( Q \):**
Let \( P \) on \( L_1 \) have coordinates \( (1+\lambda, 2\lambda, -1+2\lambda) \) and \( Q \) on \( L_2 \) have coordinates \( (2+2\mu, -4+\mu, 7-2\mu) \).
The displacement vector \( \vec{PQ} \) is:
\[ \vec{PQ} = \begin{pmatrix} (2 + 2\mu) - (1 + \lambda) \\ (-4 + \mu) - 2\lambda \\ (7 - 2\mu) - (-1 + 2\lambda) \end{pmatrix} = \begin{pmatrix} 1 + 2\mu - \lambda \\ -4 + \mu - 2\lambda \\ 8 - 2\mu - 2\lambda \end{pmatrix}. \]
Since \( PQ \perp L_1 \):
\[ \vec{PQ} \cdot \begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix} = (1 + 2\mu - \lambda) + 2(-4 + \mu - 2\lambda) + 2(8 - 2\mu - 2\lambda) = 9 - 9\lambda = 0 \implies \lambda = 1. \]
Since \( PQ \perp L_2 \):
\[ \vec{PQ} \cdot \begin{pmatrix} 2 \\ 1 \\ -2 \end{pmatrix} = 2(1 + 2\mu - \lambda) + (-4 + \mu - 2\lambda) - 2(8 - 2\mu - 2\lambda) = -18 + 9\mu = 0 \implies \mu = 2. \]
Thus:
\[ P = (2, 2, 1), \quad Q = (6, -2, 3), \quad \vec{PQ} = \begin{pmatrix} 4 \\ -4 \\ 2 \end{pmatrix}. \]
2. **Find the length of \( PQ \):**
\[ |\vec{PQ}| = \sqrt{4^2 + (-4)^2 + 2^2} = \sqrt{16 + 16 + 4} = 6. \]
3. **Use the area condition to find \( R \):**
Since \( R \) lies on \( L_1 \), the vector \( \vec{PR} \) lies along the direction of \( L_1 \). Because \( PQ \perp L_1 \), the line segment \( PQ \) is perpendicular to \( PR \), making triangle \( PQR \) right-angled at \( P \).
\[ \text{Area}(\triangle PQR) = \frac{1}{2} |\vec{PQ}| |\vec{PR}| = 18 \implies \frac{1}{2}(6)|\vec{PR}| = 18 \implies |\vec{PR}| = 6. \]
The unit direction vector along \( L_1 \) is:
\[ \hat{\mathbf{d}}_1 = \frac{1}{\sqrt{1^2+2^2+2^2}}\begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}. \]
Therefore, the position vector of \( R \) is:
\[ \vec{OR} = \vec{OP} \pm 6\hat{\mathbf{d}}_1 = \begin{pmatrix} 2 \\ 2 \\ 1 \end{pmatrix} \pm 2\begin{pmatrix} 1 \\ 2 \\ 2 \end{pmatrix}. \]
This gives two candidate points: \( (4, 6, 5) \) or \( (0, -2, -3) \).
Since the \( z \)-coordinate of \( R \) is positive, \( R = (4, 6, 5) \).
4. **Find the midpoint \( M \) of \( QR \) and its distance to the origin:**
\[ M = \frac{1}{2}(Q + R) = \frac{1}{2}\begin{pmatrix} 6 + 4 \\ -2 + 6 \\ 3 + 5 \end{pmatrix} = \begin{pmatrix} 5 \\ 2 \\ 4 \end{pmatrix}. \]
The distance from the origin \( O \) to \( M \) is:
\[ |\vec{OM}| = \sqrt{5^2 + 2^2 + 4^2} = \sqrt{25 + 4 + 16} = \sqrt{45} = 3\sqrt{5}. \]