adding solutions to difference of squares problem