The direction cosines of the line given by $x = y = 1 - z$ are:
Show Hint
Always make sure the coefficient of $x, y, z$ is exactly $+1$ before reading off direction ratios. For instance, transforming $1-z$ to $z-1$ changes the ratio sign from $+1$ to $-1$!