I don't know how to solve this equation.

cos(30) = x / 6

How would I solve this to find the missing side of a 30-60-90 triangle?

cos(30º) = √3 / 2 = x / 6