Find a $3\times 3$ matrix $B$ which contains $A$ as a sub-matrix and has eigen values $0$, $1$ only
where $$A= \begin{bmatrix} -2& -12 \\1&5 \end{bmatrix}$$
I cant find a way how to construct $B$
I took the eigen values to be $0$, $0$, $1$ and then took $$B = \begin{bmatrix} -2& -12& a\\1&5 &b\\c&d&e\end{bmatrix}$$ $\implies 3+e=1\implies e=-2$
But how to take $a$, $b$, $c$, $d$?
Please help.
If $A$ is a square matrix of size $n\times n$, then the block matrix $$B=\pmatrix{O&A\\O&O}$$ of size $2n\times 2n$ has only zero as an eigenvalue. If you really want both of zero and one as eigenvalues, take a diagonal sum with an identity matrix.
ADDED IN EDIT.
For a $3\times 3$ example, consider matrices of the form $$\pmatrix{*&-2&-12\\0&1&5\\0&0&*}$$