2021 WSMO Team Round/Problem 15

Problem

Let $ABCD$ and $DEFG$ (vertices labelled clockwise) be squares that intersect exactly once and with areas $1011^2$ and $69^2$ respectively. There exists a constant $M$ such that $CE+AG>M$ where $M$ is maximized. Find $M.$

Solution