The difference between two numbers is 40.They are in the ratio 9:7. What are the numbers?