In triangle XYZ,Cos X = 0.4 What is the length of XZ?

To fully define a triangle, you need three pieces of information. One angle is not enough. At least one must be the length of a side.

All you have provided is one angle.