Consider the cube ABCDABCDABCDA^{\prime}B^{\prime}C^{\prime}D^{\prime} (with face ABCDABCD directly above face ABCDA^{\prime}B^{\prime}C^{\prime}D^{\prime}).

(a) Find the locus of the midpoints of segments XYXY, where XX is any point of ACAC and YY is any point of BDB^{\prime}D^{\prime}.

(b) Find the locus of points ZZ which lie on the segments XYXY of part (a) with ZY=2XZZY=2XZ.