step 1: write square of last digit.
step 2: square of first two digit+(2 x first digit x last digit) + last digit.
example : 256 x 256
1. write 6 x 6 = 36
2. 25 square is 625 so 625+(2x2x6)+6=655
so answer is 65536