6ab-9a and 178; B-B and 179; how to decompose the factor

6ab-9a and 178; B-B and 179; how to decompose the factor

6ab-9a²b-b³
=-b(9a²-6a+b²)
=-b(3a-b)²