How do i find the length of a projection of a vecor A=3x+y+2z on the xy plane?

and how do i find the unit vecotr in the xy plane that is perpendiculer to vector A?

To kow