Two squares are chosen at random on a chessboard (see figure). The probability that they have a side in common is:

A chessboard has
squares.
Two squares are chosen at random.
Total number of ways:
Now count pairs having a common side.
Horizontal adjacent pairs:
Each row has
adjacent pairs.
Since there are
rows,
pairs.
Vertical adjacent pairs:
Similarly,
pairs.
Hence total favorable pairs:
Therefore, required probability is
Hence, the required probability is
Tagged Probability using permutations and combinations. Machine-assigned, so read it as a strong shortlist rather than a verdict.