Let the son's age be the single digit x, making the father's age a number ending in x, such as 10a plus x. The condition that after ten years the father's age will be thrice the son's age translates to 10a plus x plus 10 equals 3 times (x plus 10). This simplifies to 10a minus 2x equals 20, or 5a minus x equals 10. Since the son is more than two years old, testing x equals 5 yields a equals 3, meaning the father is 35 and the son is 5; after ten years, their ages are 45 and 15, which properly satisfies the three times condition. Adding their present ages of 35 and 5 gives a total of 40 years.