The sum of two numbers is 24 and the sum of the first number and twice the second is 34 . Find the numbers .