The ratio of three numbers is 2:3:4. The greatest number is 10 more than the least number. What is the middle number?