The lengths of line segments AB and BD are in a 2:3 ratio. The length of line segment AD is given as 20. By setting AB = 2x and BD = 3x, where x is the common factor, and using the equation AD = AB + BD, the value of x is found to be 4. Therefore, the lengths of AB and BD are 8 and 12 respectively.