If \(\frac{x}{x-1} = \frac{y^2+2y-1}{y^2-2y-2}\), find the value of \(x\). The original answer can be expressed in the form \(ay^2 + by + c\). Please find the value of \(a + b + c\).

Let's think step by step and output the final answer within \boxed{}.
user