The sum of two numbers is 18 and the sum of their squares is 170. How do you find the numbers?