Half of a number plus twelve is 46. What is the number?