Correct. Remember, he didn't ask for her ages, he asked for the sum of it. In both possible solutions, the sum is the same, 10 ;)