law of cosines SSS example