Artificial intelligent assistant

Diagonal intersection of quadrat A square $ABCD$ is divided by a straight line $g$ into two parts with the same surface area. Prove that then the diagonal intersection $M$ of the square $ABCD$ lies on the line $g$.

Suppose by contrary. i.e. $M$ is out side of $g$. draw a line from $M$ to one of intersections of $g$ with square $ABCD$. Then this segment and two vertices of square divide square in two equal part such that $g$ is is one side of this segment (i.e. in one part). this is a contradiction. because $g$ also divides the square in two equal part.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy df45d2953df31f0cfe30363f37ae3f84