a(h^2-k^2)-b(k-h)

Rewrite a(h^2-k^2)- as

a(h+k)(h-k) or -(h+k)(k-h)

Then factor out the k-h that appears in both of your terms