factoriser:

A=(x+1)(x-4)+3x+3

B=[9(x*x)-25]+(6x+10)