The product of two non zero vectors is equal to the magnitude of one of them times the projection of the other onto it.
In the picture,
Finally, applying to the scalar product formula what we just have found:
Example
Find the projection of the vector