John is 5 years younger than three times his brother’s age. If the sum of their
ages is 31, how old is John?