Two chords intersecting in a circle the product of the segments of one chord equal the product of the segments of the other chord.
So AP * PB = CP * PD
Since P is the midpoint of AB then we can say AP = PB = x. CP and PD are given.
x * x = 8 * 18
x^2 = 144
x = 12
AB = 12