The student solved the equation correctly because the original has infinitely many solutions.
This is because the final step leads to the equation \(2 = 2\), which is a true statement, indicating that the original equation is true for all values of \(x\).