4x2 -12x+9 = 4x2 -6x-6x+9
= 2x(2x-3)-3(2x-3)
= (2x-3)(2x-3)
= (2x-3)2
x2+y-xy-y , Are you sure question is written properly? y and -y cancels ouit
= x2-xy ,
=x(x-y)
Maybe it is x2+x-xy-y = x2-xy+x-y (on rearranging terms)
= x(x-y)+1(x-y)
= (x+1)(x-y)