Answer:
x = 5
Explanation:
3x + 6 = 21 Subtract 6 from both sides
3x + 6 - 6 = 21 - 6
3x = 15 Divide both sides by 3
=

x = 5
I am not sure about the error. If you count each figure on the left as I unit, there are 9 units (3 rectangles and 6 squares).