Problem 5. In the cells of an $8 \times 8$ chessboard, there are 8 white and 8 black chips such that no two chips are in the same cell. Additionally, no column or row contains chips of the same color. For each white chip, the distance to the black chip in the same column is calculated. What is the maximum value that the sum of these distances can take? The distance between chips is the distance between the centers of the cells they occupy.