8-7 skills practice law of cosines