Because you have to consider all possibilities, you will have multiple different-looking number lines. Using the ratios given in the problem, just by playing around with the letters' placements on the number line you can easily find the length of AD.