Factor $x^3 - 9x^2 + 27x - 35$.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Factor $x^3 - 9x^2 + 27x - 35$.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
(x-5)(x^2-4x+7)
Factor $x^3 - 9x^2 + 27x - 35$.
train