The sum of the ages of a boy and his brother is 25 years, and the product of their ages in years is 126. Find their ages.