Step 1: The parametric equations of the line passing through the points \( (-1, 2, 1) \) and parallel to the line \( \frac{x - 1}{2} = \frac{y + 1}{3} = \frac{z}{4} \) are: \[ \frac{x - (-1)}{2} = \frac{y - 2}{3} = \frac{z - 1}{4} = t. \] Thus, the parametric equations are: \[ x = -1 + 2t, \quad y = 2 + 3t, \quad z = 1 + 4t. \] Step 2: The parametric equations of the line \( \frac{x + 2}{3} = \frac{y - 3}{2} = \frac{z - 4}{1} \) are: \[ \frac{x + 2}{3} = \frac{y - 3}{2} = \frac{z - 4}{1} = s. \] Thus, the parametric equations are: \[ x = -2 + 3s, \quad y = 3 + 2s, \quad z = 4 + s. \] Step 3: To find the point of intersection \( P \), equate the parametric equations of the two lines: \[ -1 + 2t = -2 + 3s, \quad 2 + 3t = 3 + 2s, \quad 1 + 4t = 4 + s. \] Step 4: Solve the system of equations for \( t \) and \( s \). From the first equation: \[ -1 + 2t = -2 + 3s \implies 2t - 3s = -1. \] From the second equation: \[ 2 + 3t = 3 + 2s \implies 3t - 2s = 1. \] From the third equation: \[ 1 + 4t = 4 + s \implies 4t - s = 3. \] Step 5: Solve the system of equations: 1. \( 2t - 3s = -1 \) 2. \( 3t - 2s = 1 \) 3. \( 4t - s = 3 \) From equation (3), solve for \( s \): \[ s = 4t - 3. \] Substitute this into equations (1) and (2): From equation (1): \[ 2t - 3(4t - 3) = -1 \implies 2t - 12t + 9 = -1 \implies -10t = -10 \implies t = 1. \] Substitute \( t = 1 \) into the equation for \( s \): \[ s = 4(1) - 3 = 1. \] Step 6: Substitute \( t = 1 \) and \( s = 1 \) into the parametric equations of the lines to find the coordinates of the intersection point \( P \): \[ x = -1 + 2(1) = 1, \quad y = 2 + 3(1) = 5, \quad z = 1 + 4(1) = 5. \] Thus, \( P(1, 5, 5) \).
Step 7: Now, calculate the distance from \( P(1, 5, 5) \) to the point \( Q(4, -5, 1) \). The distance formula is: \[ d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}. \] Substitute the coordinates of \( P \) and \( Q \): \[ d = \sqrt{(4 - 1)^2 + (-5 - 5)^2 + (1 - 5)^2} = \sqrt{3^2 + (-10)^2 + (-4)^2} = \sqrt{9 + 100 + 16} = \sqrt{125} = 5\sqrt{5}. \] Thus, the distance from \( P \) to \( Q \) is \( 5\sqrt{5} \).