find u•v satisfying the given conditions where a is the angel between u and v.

a=150 degrees, |u|=3, |v|=40
and if a=pi/3 ??

Surely you know that

u•v = |u||v|cos a , you are given |u|, |v|, and a , just do it for the two values of a you are given.