First, even though
and
are given, we still need to know
and
in order to calculate
If we know that
, then we can determine the value of cosine by the following process:
Given:
Square both sides:
Apply the Pythagorean
Identity
A little algebra
Take the root
Since your problem does not restrict the value of
or
to a specific quadrant, the value of cosine, when calculated on the basis of the value of sine, is ambiguous. We should look out for more than one solution to your problem.
Now we have all the information required to perform the needed calculation.
So
or
Hence
or
John

My calculator said it, I believe it, that settles it