Question 37
Square $ABCD$ of size $2019 \times 2019$ is divided by two lines into four rectangles with integer side lengths, and some of the rectangles might be squares. Turns out, the area of the rectangle containing vertex $A$ equals the perimeter of the rectangle containing vertex $B$. What is the area of the smallest of the four rectangles (or squares)?

