The sum of the two numbers is 12 and the sum of their squares is 74. What is the numbers?