Read the problem below. The problem was solved incorrectly. Find the error that was made and explain it. Then answer the problem correctly.

3x+2x-6=24
-2 -2x
x-6=24
+6 +6
x=30

The error in solving the problem was making a calculation mistake when combining like terms. The correct way to solve the problem is as follows:

3x + 2x - 6 = 24
5x - 6 = 24
5x = 24 + 6
5x = 30
x = 30 / 5
x = 6

Therefore, the correct answer is x = 6.