Example of the law of cosines?

Can you answer this question?