Using the law of cosines (c² = a² + b² - 2abcosC), solve for cosC. (Rewrite the equation so that you have cosC isolated on one side of the equation.)