questions 5: Error analysis

read the problem below the problem was solved incorrectly. find the error that was made and explain it. then answer the problem correctly
the problem is
3x + 2x - 6 = 24
-2x -2x
x - 6 = 24
+ 6 +6
x = 30

The error in the solution is that when combining like terms, it should be 3x + 2x = 5x, not x.

Correct solution:
3x + 2x - 6 = 24
5x - 6 = 24
+6 +6
5x = 30
x = 6