Ryan is thinking of two rational numbers in the ratio of 7:9. If ten is subtracted from
twice their sum, the result is 38. Find both numbers.