The greater of two numbers is 9 more than the smaller, if the smaller is added to twice the greater the result is 22, find both numbers.