The first square can be chosen in 64 ways, after which the second can be chosen in 63 ways. Now, if the first square is in one of the four corners, the second square can be chosen in just one way. If the first square is one of the 24 non-corner squares along the sides of the chessboard, the second square can be chosen in two ways. Finally, if the first square is any of the 36 remaining squares, the second square can be chosen in four ways. Therefore the number of favourable choices is
(4)(1)+(24)(2)+(36)(4)=196,
So that the required probability is
p=19664×63=7144⇒144p=7