The length of each side of a square is 3 inches more than the length of each side of a smaller square. The sum of the areas of the squares is 369 inches. Find the lengths of the sides of the two squares.