This question was asked in Ex 6.3, 6
How many squares and rectangles in the chess board are there in the mathematics way

Palani R's image