Question 2
Given the following triangular arrangement of circles:

Each of the numbers $1,2,\ldots,9$ is to be written into one circle, so that each circle contains exactly one number and
(i) the sums of the four numbers on each side of the triangle are equal;
(ii) the sums of the squares of the four numbers on each side are equal.
Find all ways in which this can be done.

Each of the numbers $1,2,\ldots,9$ is to be written into one circle, so that each circle contains exactly one number and
(i) the sums of the four numbers on each side of the triangle are equal;
(ii) the sums of the squares of the four numbers on each side are equal.
Find all ways in which this can be done.