I can’t figure mid segments out! Help please.

Triangle ABC has the mid segment DE, where D is the midpoint of AB and E is the midpoint of AC. The lengths of AD and DB are given below. What is the length of AB?

AD= x^2 - x + 2
DB = x^2 - 2x + 6

Q&A Education