All matrices which commute with all $2\times 2$ matrices
Solution 1:
what are the $2 \times 2$ matrices $\pmatrix{a&b\\c&d}$ that commute with $\pmatrix{0&1\\0&0}?$
$$ \pmatrix{0&a\\0&c} = \pmatrix{a&b\\c&d} \pmatrix{0&1\\0&0} = \pmatrix{0&1\\0&0}\pmatrix{a&b\\c&d}=\pmatrix{c&d\\0&0}$$ implies we need $$ a= d, c = 0$$
by considering the matrix $\pmatrix{0&0\\1&0}$ you will find $$ a= d, b = 0$$
the matrix of the form $$\pmatrix{a&0\\0&a}$$ called the scalar matrix is the matrix that commutes with all $2 \times 2$ matrices.
Solution 2:
The set of $2\times 2$ matrices with non-zero determinant form a group under the operation of matrix multiplication. For any group $G$ the centre of $G$, denoted $Z(G)$, is defined as $$Z(G)=\{ z \in G : zg = gz \ \ \text{for all} \ \ g \in G \}$$
We use the letter $Z$ because "zentrum" is "centre" in German. This is exactly what you want: you want the $2\times 2$ matrices $z$ for which, for any $2\times 2$ matrix $g$, you have $zg=gz$.
The group of $n\times n$ matrices with real entries is called the general linear group and is denoted by $\mathrm{GL}(n,\mathbb{R})$. In your case, you have $2\times 2$ matrices, and so $n=2$.
It turns out that the centre of $\mathrm{GL}(n,\mathbb{R})$, for all $n$, is given by the matrices which are a multiple of the identity matrix. The identity matrix is the identity element of the group. In the case $n=2$ $$Z(G) = \left\{ \left(\begin{array}{cc} k & 0 \\ 0 & k \end{array}\right) : k \in \mathbb{R}, \ k \neq 0 \right\}$$
If you don't want a group structure then you can include $k=0$.
Edit: Request for proof
The proof can be found by Googling "Centre of the General Linear Group".