Fill in the circles with the numbers 1, 2, 3, 4, 5, 6 and 7. Each number can be used once without repetitions. The sum of the digits inside the circles at the four vertices of the square on the left is 15 and the sum of the digits inside the circles at the vertices of the regular pentagon on the right is 24. How many possible arrangements are there?