2. Let be the position vector of A then the equation of the line passing through A and perpendicular to P has the equation:
3. Let be the position vector of B.
B is situated on the line l that means for a certain value you get:
4. Since the vector must satisfy the equation of the plane. Plug in the term for into the equation: