→r=x^i+y^j+2^k|→r|=3√2√x2+y2+z2=3√2x2+y2+z2=18
It makes π4 with yours
So, →r.^j=|→r|cosπ4y=3√2√2=3
It makes π2 with z−axis
So,→r.^k=|→r|cosπ2z=0
So, x2+32+02=18x2+9=18x2=9x=±3
So, →r=3^i+3^j/−3^i+3^j