solve difference of squares