Two numbers are in the ratio 3 to 7 . Two-fifths of their sum is 32 .