The sum of the ages of father and his son is 45 years. Five years ago the product of their ages was 34. The ages of the son and his father respectively are.