The sum of two numbers is 39. Twice the first number plus 3 times the second number is 101. Find the numbers. (unit: algebra)