For an $a \in \mathbb{R}$ let $\phi_a: \mathbb{R}^3 \rightarrow \mathbb{R}^3$ be a linear mapping such that $\phi_a(x) := \begin{pmatrix} 1 & 2 & 2 \\1 & 3 & 5 \\ 1 & -1 & a \\ \end{pmatrix}$.
If $a = -7$ $\phi$ is not bijective.
Now I am looking for a matrice $B$ such that a linear mapping $\psi : \mathbb{R}^3 \rightarrow \mathbb{R}^3$, $x \rightarrow B\cdot x$ guarantees that$Ker(\psi) = Im(\phi_a)$ where $a=-7$
I am looking for a general approach rather then a solution.
For $a=7$ the last column is linearly dependent with the first two, so it does not affect the image of $\phi_7$. Now you are looking for a nonzero matrix $B$ satisfying $$ B\cdot \begin{pmatrix} 1 & 2 \\1 & 3 \\ 1 & -1\\ \end{pmatrix} =0. $$ That should not be hard, a $1\times 3$ matrix $B=(b_1~b_2~b_3)$ will do. The two entries of the $1\times 2$ product that should vanisg give you $2$ linear homogeneous equations in $3$ unknowns for which you want a non trivial solution; standard equation solving should easily provide such a solution. If you want a square matrix, just as null rows.