The unit's digit must be either a 4 or a 6 for the square to end in 6; all other possibilites can be excluded by trial.
If you are squaring a two-digit number, you can represent this number as 10a + b (knowing that b must be
either 4 or 6).
(10a + b)2 = 100a2 + 20ab + b2
The 100a2 can be ignored for it does not affect the ten's digit.
20ab must be even; an even number, 20, times either an even number or an odd number results in an even number.
To this term (20ab) must be added the carry of the b2 term.
If b = 4, the carry is 1.
If b = 6, the carry is 3.
Adding an odd number (either 1 or 3) to an even number (20ab) results in an odd number.
By trying various possibiliteis, you will discover that the ten's digit can be any of the odd digits.