The points A, B, C, and D are on a number line, not necessarily in that order. If the distance between A and B is 18 and the distance between C and D is 8, what is the distance between B and D?