Medians of a Triangle with Centroid and Distances

In this sketch we see the intersection of medians and the centroid of the triangle. Segment lengths are measured on one of these medians.

How can you prove that this relationship always holds true?