Points O, A, B lie on the same line. OA = 12 cm, OB = 9 cm. Find the distance between the midpoints of segments OA and OB if point O lies on the segment AB?