$\textbf{Question:}$ Let $ABC$ be a triangle and $M$ be the midpoint of $BC$. Squares $ABQP$ and $ACYX$ are erected. Show that $PX = 2AM$.
I could solve this problem using computational techniques but I am looking for purely synthetic solution. I tried drawing some extra midpoints, connected them. But still couldn't find the solution.
Any kind of hint or full solution both are appreciated.
Rotate triangle $AXP$ by $90^{\circ}$ around $A$ so that $P$ goes to $B$ and $X$ goes to a new point $X'$. Then $PX$ goes to $BX'$.
But $X',A,C$ are collinear, and $A$ is the midpoint of $X'C$; so $AM$ is a medial line in triangle $X'BC$. Hence $X'B = 2AM$.
Notice that we prove also $PX\bot AM$.