When you subtract 22 from a number and the result is doubled, the answer is 6 more than the original number. What is the number?