The lenght of AB is 7.987
To solve this, we have the lenght of the hypotenuse, an angle, and we want to find the lenght of the leg adjacent ot the angle. The trigonometric relationship that relates those 3 things is cosine.
THen for angle = 20º and hypotenuse = 8.5: