In triangle XYZ, we have angle X = 120, tan Z = 3. What is cos Z? Answer with an exact number.

Like so:

That doesn't make sense to me whatsoever. The sum of angles X and Z is over 180

That looks more like this: