The larger of two numbers is 12 more than twice the smaller. The larger number is 36. What is the smaller number?