The sum of a number and its square is 42. What is the number?