The equation \(x^2+11x+n=x\) can be rearranged as \(x^2+10x+n=0.\)
When \(x^2+10x+25=0\), the roots are real and equal.
However, for \(x^2+10x+n=0\) where \(n>25\), the roots become complex.
To find the maximum value of n for which the equation has two distinct real roots, it is 24.