The sum of two numbers is 49. If twice the smaller number is subtracted from the larger number, the result is 10. Find the two numbers.