There is something called dot product which I'm sure will give you the answer here, but I'm not sure whether you know about it or not. The formula is:

If you want to get further in formation about how to use it, just ask

Otherwise, solving it by sketching would be the way I'd take.