The sum of two numbers is 17 and the sum of their squares is 145. Find the numbers.