This question was asked in Law of Cosine (Cosine Law)
Formula 
Smit rupareliya's image