The sum of three numbers is 123. The ratio of first to second number is 2:3.and the ratio of the second to the third is 4: 7. Find the third number.