Have you studied the law of cosines and the law of sines for triangles (nonright triangles)?
EDIT: You can also calculate the xcomponent of AB, and the ycomponent of AB... then use pythogrean theorem.
Both approaches are good... it's up to you...
