(Review: ) How do you compute a unit vector?
Divide a vector by its length
Rather than memorize the formula for projection, follow what it means step-by-step. To project w onto v:
Is w projected onto v the same vector as v projected onto w ?