5. In the array of numbers shown in Figure 1, the three numbers in each row form an arithmetic sequence, and the three numbers in each column also form an arithmetic sequence. If $a_{22}=2$, then the sum of all nine numbers is equal to

保留源文本的换行和格式，直接输出翻译结果如下：

5. In the array of numbers shown in Figure 1, the three numbers in each row form an arithmetic sequence, and the three numbers in each column also form an arithmetic sequence. If $a_{22}=2$, then the sum of all nine numbers is equal to
5.18.

From the problem, we have
$$
\begin{array}{l}
a_{11}+a_{13}=2 a_{12}, a_{21}+a_{23}=2 a_{22}, \\
a_{31}+a_{33}=2 a_{32}, a_{12}+a_{32}=2 a_{22} .
\end{array}
$$

Thus, the sum of all nine numbers is $9 a_{n}=18$.