Solve the triangle using the Law of Cosines