Let x be the age of the younger person.
The older person would be 6x +5 (5 years older than 6 times)
Now add to equal the sum:
x + 6x +5 = 26
Combine like terms:
7x +5 = 26
Subtract 5 from both sides:
7x = 21
Divide both sides by 7:
x = 3
Now you can subtract the age of the younger person from the total age:
26-3 = 23
The ages are 3 and 23