Given triangle is a right angle triangle so we are allowed to use trigonometric formulas.
We want to find Hypotenuse using angle A and base 7 cm
so right choice is to use cosine





Hence value of side AB is approx 7.72 cm.
Explanation is in the file
tinyurl.com/wpazsebu
Basically, shift each coordinate one unit to the right (one X over)
You will have to predict the points a little