Sum of the areas of two squares is 640m2. If the difference of their perimeters is 64m, find the sides of two squares.