The dot product is defined as

In each of these problems you are given two vectors, we can find the magnitude of each by using this formula,

For

We can also find the dot product which is,

Being able to find the dot product and the magnitude we can plug these values into the original equation

and solve for