The task is to generate the correct answer for a given math problem.
Q: Problem: there are two positive numbers in the ratio 2 : 7 . if the larger number exceeds the smaller by 30 , then find the larger number ?
A:
42