There are two numbers whose sum is 47. Three times the smaller number is equal to 9 more than the larger number. What are the numbers?