If we are dealing with the usual situation where we have a vector in terms of length and an angle, we could find the x-component using the formula:
x = r*cos(theta)
where r is the length of the vector, and theta is the angle.
We might need more information to say what the exact formula would be.