How does cosine work?
Cosine=Adjacent side/Hypotenuse
You must know 2 of the 3 above to solve for the third. So, if you know the angle and one side, then you can find the second side.If you know the two sides, you can find the angle.