Two friends practice taekwondo in the same class. The age of the older friend is three times that of the younger. The sum of their ages is eight more than twice the age of the younger. Find the ages.