This problem becomes much simpler if we solve it using coordinate geometry but i am seeking a solution which involves pure geometry.
Consider a $\triangle PQR$ in which the relation $$QR^2+PR^2=5PQ^2$$ holds. Let $G$ be the point of intersection of medians $PM$ and $QN$. Then find the value of $\angle QGM$.

$QR^2+PR^2=5PQ^2$
median lengths
$$PM=\frac{1}{2}\sqrt{2(PQ^2+PR^2)-QR^2}$$ $$PM=\frac{1}{2}\sqrt{2\left(\frac{x^2+y^2}{5}+y^2\right)-x^2}=\frac{1}{2} \sqrt{\frac{12 y^2}{5}-\frac{3 x^2}{5}}$$ $$QN=\frac{1}{2}\sqrt{2\left(\frac{x^2+y^2}{5}+x^2\right)-y^2}=\frac{1}{2} \sqrt{\frac{12 x^2}{5}-\frac{3 y^2}{5}}$$
$$GM=\frac{1}{3}PM=\frac{1}{6} \sqrt{\frac{12 y^2}{5}-\frac{3 x^2}{5}}$$ $$GQ=\frac{2}{3}QN=\frac{1}{3} \sqrt{\frac{12 x^2}{5}-\frac{3 y^2}{5}}$$ $$GM^2+GQ^2=\frac{x^2}{4}=QM^2\to \widehat{QGM}=90°$$