When one-half of a number is added to one-seventh of the number, the sum is 27. What is the number?