If I take as many matches from the first group as there are in the second group and add them to the second, and then take as many from the second group as there are in the third group and add them to the third, and finally take as many from the third group as there are in the first group and add them to the first group, the number of matches in each heap would be equal.
How many matches were in the three groups originally?