A (not necessarily regular) tetrahedron $A_1A_2A_3A_4$ is given in space. For each pair of indices $1\leq i<j\leq 4$, an ellipsoid with foci $A_i,A_j$ and string length $\ell_{ij}$, for positive numbers $\ell_{ij}$, is given (in all 6 ellipsoids were built). For each $i=1,2$, a pair of points $X_i\neq X'_i$ was chosen so that $X_i, X'_i$ both belong to all three ellipsoids with $A_i$ as one of their foci. Prove that the lines $X_1X'_1, X_2X'_2$ share a point in space if and only if \[\ell_{13}+\ell_{24}=\ell_{14}+\ell_{23}\]Remark: An ellipsoid with foci $P,Q$ and string length $\ell>|PQ|$ is defined here as the set of points $X$ in space for which $|XQ|+|XP|=\ell$.
Problem
Source: 2022 Israel Olympic Revenge P4
Tags: geometry, olympic revenge, 3D geometry, tetrahedron