find unit vector perpendicular to both a=(2,-3,1) and b=(1,2,-4)

that would be a×b

I assume you can determine that
so find u = a×b and then you want u/|u|