(4) is the correct answer.

     Because:
     ax+a=bx+b => (a-b)x+(a-b)=0 => x=-1