Two numbers are in the ratio 2:5. If they both are increased by 6, their ratio changes to 4:7. What is the larger number?