The sum of the areas of two squares is 640 m^2. If the difference in their perimeters be 64 m, find the sides of the two squares.