The eight points $A, B,. . ., G$ and $H$ lie on five circles as shown. Each of these letters are represented by one of the eight numbers $1, 2,. . ., 7$ and $ 8$ replaced so that the following conditions are met: (i) Each of the eight numbers is used exactly once. (ii) The sum of the numbers on each of the five circles is the same. How many ways are there to get the letters substituted through the numbers in this way? (Walther Janous)
Problem
Source: 2021 Austrian Mathematical Olympiad Junior Regional Competition , Problem 3
Tags: combinatorics