Factor out the common binomial factor

(5x+y)(x-y)-5x(x-y)

clearly the common factor is (x-y)

so
(5x+y)(x-y)-5x(x-y)
= (x-y)(5x+y - 5x)
= y(x-y)