Assume exist 36 distinct numbers with the requested property.
Denote aij the number situated at the intersection of the row i and the column j;i,j∈{1,2,3,4,5,6}.
Using the given conditions in the first row, we obtain:
{a11+a12+a13+a14+a15∈{2022,2023}a12+a13+a14+a15+a16∈{2022,2023}a11≠a16⟹a11−a16∈{−1,+1}(1).
Applying the same method in the last row, respectively in the first and the last column, we obtain:
a61−a66∈{−1,+1};a11−a61∈{−1,+1};a16−a66∈{−1,+1}(2).
WLOG, we can consider min.
From (1) and (2) results:
\begin{cases}a_{16}=a_{11}+1\\a_{61}=a_{11}+1\end{cases}\Longrightarrow a_{16}=a_{61}, contradiction with the initial condition (the 36 numbers are distinct).
Hence: it is not possible to arrange 36 distinct numbers with the requested property.