Let a,b and c be the dr's of the required line.
It is given that this line is perpendicular to the line whose dr's are 1,-1,2.
So, a(1)+b(-1)+c(2)=0
a-b+2c=0 ...(1)
It is given that this line is perpendicular to the line whose dr's are 2,1,-1.
So, a(2)+b(1)+c(-1)=0
2a+b-c=0 ...(2)
Solving (1) and (2),
a b c
1 -1 2
2 1 -1