first you need to group like terms
[tex]2b - 3b + b - 5ab - 2ba + 2a[/tex]
[tex] = 0 - 5ab -( 2ba + 2a)[/tex]
factorizing 2a
[tex] - 5ab - 2a(b + 1)[/tex]