what is the law of cosines
Go online and learn about it here: https://www.mathsisfun.com/algebra/trig-cosine-law.html