The difference between two whole numbers is 9. Twice the smaller number is 6 more than the larger. What is the smaller number?