Y by
A checkered square
is divided into rectangles with two cells. Two rectangles are called adjacent if they share a segment of length 1 or 2. In each rectangle the amount of adjacent with it rectangles is written.
Find the maximal possible value of the sum of all numbers in rectangles.

Find the maximal possible value of the sum of all numbers in rectangles.