The larger of two numbers is 10 more than the smaller number. Also, five times the larger number
is 40 more than 6 times the smaller number. Find both numbers.