In △ABC, BC=24, D is a point on BC. G1 and G2 are centroids of △ABD and △ACD, respectively. Find the length of G1G2.