Take into account that the scalar projection is given by:
the magnitude of a vector is:
The dot product between a and b is:
Then, the scalar projection is:
Now, consider that the vector projections is given by:
Hence, the answer is:
scalar projection of b onto a = 3
vector projection of b onto a = (-9/5 . 12/5)