Find the ratio whose terms differ by 40 and whose simplified form is 27.
The ratio whose terms differ by 40 is 2 : 7. The smallest number is ___.