def score(boards, number, index):
    """Return the final score of the board that contains index."""
    first = index - index % 25
    return int(number) * sum(int(boards[i]) for i in range(first, first + 25))