Prove the red triangle is right iff $$a + b + c = r + s + t + u.$$ Prove the red triangle is right iff $$a^2 + b^2 + c^2 = r^2 + s^2 + t^2 + u^2.$$