Daniel B. answered 05/18/21
A retired computer professional to teach math, physics
In general, a projection of a vector v on the direction of a vector w is
w (w.v)/|w|²,
where (w.v) is the dot product of w and v.
If you want, let me know and I can derive it for you.
In your example,
v = -i + 6j
w = 3i - 2j
v1 = (3i - 2j) (-3 - 12)/(3² + 2²) = (3i - 2j)(-15)/13
Now for v2, first we get a vector w' perpendicular to w.
In general, if u is a vector
u = ai + bj
then
u' = -bi + aj
is a vector perpendicular to u.
In your example
w' = 2i + 3j
v2 = (2i + 3j) (-2 +18)/(2² + 3²) = (2i + 3j)(16)/13