You found the value of . First use the Pythagorean Theorem to find h:
After solving for h, use the definition of cosine: