Imagine that we have a vector v=ai+bj. In the coordinate grid it is represented as an arrow that starts at (0,0) and ends at (a,b):
As you can see, this vector along with its x and y components (a and b) form a right triangle. Applying the Pythagorean theorem to this triangle results in:
Now, remember that the tangent of an angle in a right triangle is given by the quotient between its opposite side and its adjacent side. As you can see the opposite and adjacent side of angle α are b and a respectively which means that its tangent is equal to:
We can apply all of this to the vector given by the question. We have the value of ||v|| and we have the value of the angle (in this case is named θ instead of α). With these two values we can build two equations for a and b:
Let's take the second equation and multiply both sides by a:
So we have an expression for b. We use it in the first equation:
We divide both sides by 2:
Then we apply module to the expression for b and use the value |a|=18:
So we have the modules of a and b, we still need to decide their sign:
In order to do this we can use the value of the angle θ. It's 120° which means that it's in the second quadrant because is greater than 90° and smaller than 180°. If the vector is this quadrant then its i component is negative and its j component is positive which means a<0 and b>0. Then we get a=-18 and b=18√3 so we get:
So the answers are the following two numbers:
IMPORTANT: In case you can't write radicals you must replace the square root of 3 with 1.732 so if you can't write radicals the answes are: