The sum of areas of two squares is 468m2. If the difference of their perimeters is 24m, then the sides of the two squares are: