Ok. Consider a vector [itex]\mathbf{a}=(a_1, a_2, a_3)[/itex] and imagine the angles between that vector and the vectors [itex]\mathbf{\hat{i}}[/itex], [itex]\mathbf{\hat{j}}[/itex] and [itex]\mathbf{\hat{k}}[/itex] are [itex]\alpha[/itex], [itex]\beta[/itex] and [itex]\gamma[/itex] respectively. Knowing that the magnitude of the vector is [itex]a[/itex] we can use pythagorean theroem to say that:
[tex]cos(\alpha) =\frac{a_1}{a}[/tex]
[tex]cos(\beta) = \frac{a_2}{a}[/tex]
[tex]cos(\gamma) = \frac{a_3}{a}[/tex]
Thus we note:
[tex]\mathbf{\hat{a}} = \frac{\mathbf{a}}{|\mathbf{a}|}=cos(\alpha)\mathbf{\hat{i}}+cos(\beta)\mathbf{\hat{j}}+cos(\gamma)\mathbf{\hat{k}}[/tex]
Now knowing thiscan you find the angle between the x-axis and the vector with the information you have?