Let $a, b, x, y$ be real numbers such that $0<x<a$ and $0<y<b$ and
$a^2+y^2=b^2+x^2=2(ax+by)$.
Prove that $ab+xy=2(ay+bx)$
solution
$a^2+y^2=2(ax+by)>>(a+y)^2-2ay=2(ax+by)$
$b^2+x^2=2(ax+by)>>(b+x)^2-2bx=2(ax+by)$
Let's write sum of this two equations
$(a+y)^2-2ay+(b+x)^2-2bx=4(ax+by)$
we know that
$(a+y)^2-2ay=2(ax+by)$
$(b+x)^2-2bx=2(ax+by)$
$(a+b)^2-2ab+(x+y)^2-2xy=4(ax+by)$
$(a+y)^2-2ay+(b+x)^2-2bx=4(ax+by)$
$(a+b)^2-2ab+(x+y)^2-2xy+(a+y)^2-2ay+(b+x)^2-2bx=8(ax+by)$
$(a+b)^2-2ab+(x+y)^2-2xy+(a+y)^2+(b+x)^2-8(ax+by)=2(ay+bx)$
Since $8(ax+by)=2(a^2+y^2)+2(b^2+x^2)$
$(a+b)^2-2ab+(x+y)^2-2xy+(a+y)^2+(b+x)^2-2(a^2+y^2)-2(b^2+x^2)=2(ay+bx)$
$(a+b)^2+(x+y)^2+(a+y)^2+(b+x)^2-2(ab+xy)-2(a^2+y^2)-2(b^2+x^2)=2(ay+bx)$
I can't write anything after that