Find the equation of a plane that crosses point $P(-1,2,1)$, that is parallel to the line $p: x=0,y=-z$ and its angle with line $q: x=y, z=0$ is $\frac{\pi}{4}$.
First lets write those two lines in canonical form. Lets observe normal vectors of two $p$ planes: $\vec{n_{p_1}}=(1,0,0)$ and $\vec{n_{p_2}}=(0,1,1)$. Their cross product will give direction vector of $p$. So, $\vec{n_{p_1}}\times\vec{n_{p_2}}=(0,-1,1).$ Lets take a point now thats on $p$ and satisfies both planes of $p$, e.g.: $A(0,2,-2)$. Now we have the canonical form of $p$: $\frac{x-0}{0}=\frac{y-2}{-1}=\frac{z+2}{1}$.
Same for $q$: $\vec{n_{q_1}}=(1,-1,0)$ and $\vec{n_{q_2}}=(0,0,1)$ and their cross product: $\vec{n_{q_1}}\times\vec{n_{q_2}}=(-1,-1,0).$ Lets take a point that satisfies both planes of $q$, e.g.: $B(1,1,0)$. Now we have the canonical form for $q$: $\frac{x-1}{-1}\frac{y-1}{-1}\frac{z-0}{0}$.
$\sin\alpha=\frac{\vec{n_\pi}\vec{q}}{|\vec{n_\pi}||\vec{q}|}$ where $\vec{n_\pi}$ is normal to the plane we're looking for. $\alpha=\frac{\pi}{4}$ so $\frac{\vec{n_\pi}\vec{q}}{|\vec{n_\pi}||\vec{q}|}=\frac{\sqrt{2}}{2}$. If $(k,l,m)$ is normal vector to the plane we're looking for then it's perpendicular to the direction vector of $p$ because we know that the line and plane are parallel: $\vec{p}(k,l,m)=0$ -> $(0,-1,1)(k,l,m)=0$ -> $-l+m=0$ -> $m=l$. Now I have another equation from the angle condition.
$\frac{(k,l,m)(-1,-1,0)}{\sqrt{k^2+l^2+m^2}\sqrt{2}}=\frac{\sqrt{2}}{2}$.
This is where I'm stuck. If I somehow manage to get normal vector, I have the point $P(-1,2,1)$ and with the normal vector I have the equation of my plane. What should I do next? Any tips would be appreciated!