Find the equation of a plane that contains a given line and is 2 units away from a given point. The given line has a vector of (2,-1,4) and contains the points A(-1,1,-1) and B(1,0,3). The given  point is P(2,3,4). The problem asks you to find a plane such that its distance to P is 2 units and it contains line AB, and to justify the number of solutions it has.
I've tried making the plane's orthogonal vector (A,B,C) unitary and multiplying it by 2 to make its modulus 2, but I don't know how to find A, B and C from there.
Another approach is using the distance formula, but I get a single equation with 4 variables, some of which are squared. 

Let $T$ be a point of the sphere $s$ centered at $P$ withe radius $2$ such that the distance from the plane $p$ defined by $T$, $A$ and $B$ to $P$ is equal to $2$. Then $p$ is tangent to $s$ and therefore the vectors $TA$ and $TB$ are orthogonal to $TP$. So, you can find the point $T$ by solving the system$$\left\{\begin{array}{l}(x-2)^2+(y-3)^2+(z-4)^2=4\\(x-2)(x+1)+(y-3)(y-1)+(z-4)(z+1)=0\\(x-2)(x-1)+(y-3)y+(z-4)(z-3)=0,\end{array}\right.$$which is equivalent to$$\left\{\begin{array}{l}x^2-4 x+y^2-6 y+z^2-8 z+25=0\\x^2-x+y^2-4 y+z^2-3 z-3=0\\x^2-3 x+y^2-3 y+z^2-7 z+14=0.\end{array}\right.$$Now, if you subtract the first equation from each of the other two, you get the system$$\left\{\begin{array}{l}x^2-4 x+y^2-6 y+z^2-8 z+25=0\\3 x+2 y+5 z=28\\x+3 y+z=11.\end{array}\right.$$Solving the last two equations with respect to $x$ and $y$, you get that$$\left\{\begin{array}{l}x=\frac{62-13z}7\\y=\frac{5+2z}7.\end{array}\right.$$Finally, you put these values of $x$ and $y$ in the first equation in order to get a quadratic equation in $z$, whose roots are$$z=\frac{426\pm7\sqrt{138}}{111}.$$So, the solutions are$$\frac1{111}\left(192\mp13\sqrt{138},201\pm2\sqrt{138},426\pm7\sqrt{138}\right).$$
