3a2 - (3a - x + b)

All you can do is distribute. 3a^2-3a+x-b