(x+1)(x-1)=5(x-1)

divide through by x-1

x+1=5
solve for x.

remember, x cannot equal zero.