Let $p$ be a line that pass through the centroid of a triangle $ABC$. Unless the line pass through one vertex, then $2$ verices are one side of the line, while the third one is on the other side. Without loss of generality, let vertices $A$ and $C$ be one side, while the vertex $B$ be on the other side of the line. Let $x,y,z$ be the distances from the vertices $A,B,C$ to the line $p$. Prove that $x + z = y$
I've tried something, but I didn't make any progress. If we multiply both sides of the equality by $\frac{\overline{XY}}{2}$, then we need to prove:
$$P_{BXY} = P_{AXY} + P_{CXY} \iff \frac{XB \cdot BY \cdot \sin \angle XBY}{2} = \frac{XA \cdot AY \cdot \sin \angle XAY}{2} + \frac{XC \cdot CY \cdot \sin \angle XCY}{2} \iff XB \cdot BY = XA \cdot AY + XC \cdot CY$$
But this is the most that I manage to get.