To do this question in the specified way you need to find the lengths of both vectors and then the angle between the vectors. If then the same method is used for the length of v.

If the question did not specify the method you had to use for the dot product it would likely be easier to calculate the dot product as follows:

say we have

then: