Segment AB has length "a" and is divided by points P and Q into AP, PQ, and QB, such that AP = 2PQ = 2QB.
a) Find the distance between point A and the midpoint of segment QB
b) Find the distance between the midpoints of segments AP and QB