I just got 2 quick questions about Partial Fraction Decomposition :

1) 2x-4/x(x-1)^2 = A/x + B/x-1 + C/(x-1)^2 , I was wondering how my professor got B/x-1 ?

2) x+6/(x+2)(x^2+4) = A/x+2 + Bx+C/x^2+4 , I was wondering how my professor got Bx+C/x^2+4 ? How come the B and C are together? I thought it was supposed to be A/something + B/something + C/something?