An entire set of dominoes, except for 0-0, was laid out as shown in the figure. Different letters correspond to different numbers, the same – the same. The sum of the points in each line is 24. Try to restore the numbers.