Let $m$ and $r$ be an even, and $n$ be odd
Let the following be a square defined as the sum of two even numbers
$$m^2 = 10 n + r $$
Examples that would satisfy this equation:
$$ \begin{array} {c|rrrr} \\ \hline m & 4 & 6 & 14 & 16 & 24 & 26 & 34 & 36\\ n & 1 & 3 & 19 & 25 & 57 & 67 & 115 & 129 & \\ \hline m^2 & 16& 36& 196& 256& 576& 676& 1156& 1296 \\ &10(1)+6& 10(3)+6& 10(19)+6&10(25)+6&10(57)+6&... \end{array} $$
$r$ appears to always be 6. I would like to prove that in this pattern, r must be 6 in order to satisfy $m^2 = 10n + r$, but I cannot find a way. It is likely that there is a relationship between $m$ and $n$ but I have not been able to derive that. I have noticed that $ \lfloor \frac {m^2}{10} \rfloor = n$
How could I go about proving that $r$ must be 6?