Basically, you can use this acronym, SOHCAHTOA, to know which ratios to use. Think logically afterwards. For example, the tangent of an angle at 90 would not compute because you're implying the triangle is an open square.
Sine:
Opposite of the angle (like on the other side of the triangle)
Hypotenuse
Cosine:
Adjacent to the angle
Hypotenuse
Tangent: (this is really important)
Opposite
Adjacent
Paper and pencil can help. For example, it (and geometric proofs) helped me with the Blob Terrain Generator.