[tex]
\overline{ab}-\overline{ba}=36 \\
10a+b - (10b + a)=36 \\
10a+b - 10b - a=36 \\
9a-9b = 36 \\
9a = 36+9b \\
a = \frac{36+9b}{9} \\
a= 4+b \\
\texttt{Dam valori lui b } \\
\Longrightarrow ~~\boxed{ \overline{ab} \in \{51;~62;~73;~84;~95\}}[/tex]